1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/lib
Fangrui Song beebf4212b [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 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)
2020-01-13 10:42:21 -08:00
..
Analysis [SCEV] Follow up of D71563: addressing post commit comment. NFC. 2020-01-13 08:54:38 +00:00
AsmParser Revert "Allow output constraints on "asm goto"" 2020-01-07 13:44:08 -08:00
BinaryFormat
Bitcode [NFC] Fix trivial typos in comments 2020-01-06 10:50:26 +00:00
Bitstream
CodeGen [llvm][MIRVRegNamerUtils] Adding hashing on FrameIndex MachineOperands. 2020-01-13 13:39:54 -05:00
DebugInfo [DebugInfo] Make debug line address size mismatch non-fatal to parsing 2020-01-13 16:27:05 +00:00
Demangle
DWARFLinker [CMake] Fix modules build after DWARFLinker reorganization 2020-01-10 11:06:38 -08:00
ExecutionEngine [Disassembler] Delete the VStream parameter of MCDisassembler::getInstruction() 2020-01-11 13:34:52 -08:00
Frontend
Fuzzer
FuzzMutate
IR [AArch64] Add function attribute "patchable-function-entry" to add NOPs at function entry 2020-01-10 09:55:51 -08:00
IRReader
LineEditor
Linker
LTO [ThinLTO] Pass CodeGenOpts like UnrollLoops/VectorizeLoop/VectorizeSLP 2020-01-09 21:13:11 -08:00
MC [MIPS][ELF] Use PC-relative relocations in .eh_frame when possible 2020-01-13 14:14:03 +00:00
MCA
Object [MIPS][ELF] Use PC-relative relocations in .eh_frame when possible 2020-01-13 14:14:03 +00:00
ObjectYAML
Option
Passes [Inlining] Add PreInlineThreshold for the new pass manager 2020-01-13 07:59:42 -08:00
ProfileData [NFC] Fix trivial typos in comments 2020-01-06 10:50:26 +00:00
Remarks
Support [NFC] Fix compilation of CrashRecoveryContext.cpp on mingw 2020-01-12 14:43:16 -05:00
TableGen
Target [X86][Disassembler] Fix a bug when disassembling an empty string 2020-01-13 10:42:21 -08:00
Testing
TextAPI
ToolDrivers
Transforms Fix uninitialized value clang static analyzer warning. NFC. 2020-01-11 16:02:22 +00:00
WindowsManifest
XRay
CMakeLists.txt [Dsymutil][Debuginfo][NFC] Reland: Refactor dsymutil to separate DWARF optimizing part. #2. 2020-01-08 14:15:31 +03:00
LLVMBuild.txt [Dsymutil][Debuginfo][NFC] Reland: Refactor dsymutil to separate DWARF optimizing part. #2. 2020-01-08 14:15:31 +03:00