mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
beebf4212b
readPrefixes() assumes insn->bytes is non-empty. The code path is not exercised in llvm-mc because llvm-mc does not feed empty input to MCDisassembler::getInstruction(). This bug is uncovered by a5994c789a2982a770254ae1607b5b4cb641f73c. An empty string did not crash before because the deleted regionReader() allowed UINT64_C(-1) as insn->readerCursor. Bytes.size() <= Address -> R->Base 0 <= UINT64_C(-1) - UINT32_C(-1) |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Disassembler.cpp | ||
DwarfLineTables.cpp | ||
MCInstPrinter.cpp | ||
StringTableBuilderTest.cpp | ||
TargetRegistry.cpp |