llvm-project/llvm/unittests/MC
Fangrui Song 64a93afc3c [X86][Disassembler] Fix a bug when disassembling an empty string
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 a5994c789a.
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)
2020-01-13 10:42:21 -08:00
..
CMakeLists.txt [MC] Fix undefined behavior in MCInstPrinter::formatHex 2019-09-06 01:13:32 +00:00
Disassembler.cpp [X86][Disassembler] Fix a bug when disassembling an empty string 2020-01-13 10:42:21 -08:00
DwarfLineTables.cpp [Mips] Use appropriate private label prefix based on Mips ABI 2019-10-23 12:24:35 +02:00
MCInstPrinter.cpp [Mips] Use appropriate private label prefix based on Mips ABI 2019-10-23 12:24:35 +02:00
StringTableBuilderTest.cpp
TargetRegistry.cpp