1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/lib
Jorge Gorbe Moya ac434d7750 Fix crash after looking up dwo_id=0 in CU index.
In the current state, if getFromHash(0) is called and there's no CU with
dwo_id=0, the lookup will stop at an empty slot, then the check
`Rows[H].getSignature() != S` won't cause the lookup to fail and return
a nullptr (as it should), because the empty slot has a 0 in the
signature field, and a pointer to the empty slot will be incorrectly
returned.

This patch fixes this by using the index field in the hash entry to
check for empty slots: signature = 0 can match a valid hash but
according to the spec the index for an occupied slot will always be
non-zero.

Differential Revision: https://reviews.llvm.org/D91670
2020-11-19 11:15:01 -08:00
..
Analysis [llvm][IR] Add dso_local_equivalent Constant 2020-11-19 10:26:17 -08:00
AsmParser [llvm][IR] Add dso_local_equivalent Constant 2020-11-19 10:26:17 -08:00
BinaryFormat [WebAssembly] Added R_WASM_FUNCTION_OFFSET_I64 for use with DWARF DW_AT_low_pc 2020-11-13 09:32:31 -08:00
Bitcode Revert "[IR] add fn attr for no_stack_protector; prevent inlining on mismatch" 2020-11-17 17:27:14 -08:00
Bitstream llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
CodeGen [llvm][IR] Add dso_local_equivalent Constant 2020-11-19 10:26:17 -08:00
DebugInfo Fix crash after looking up dwo_id=0 in CU index. 2020-11-19 11:15:01 -08:00
Demangle llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
DWARFLinker llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
ExecutionEngine Revert "[build] normalize components dependencies" 2020-11-18 19:23:11 +01:00
Extensions llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
FileCheck Revert "[build] normalize components dependencies" 2020-11-18 19:23:11 +01:00
Frontend Revert "[build] normalize components dependencies" 2020-11-18 19:23:11 +01:00
Fuzzer
FuzzMutate llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
InterfaceStub llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
IR [llvm][IR] Add dso_local_equivalent Constant 2020-11-19 10:26:17 -08:00
IRReader llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
LineEditor llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Linker Linker: Fix linking of byref types 2020-11-17 11:02:04 -05:00
LTO llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
MC ADT: Add assertions to SmallVector::insert, etc., for reference invalidation 2020-11-18 17:36:28 -08:00
MCA llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Object [AIX][XCOFF][Patch2] decode vector information and extent long table of the traceback table of the xcoff. 2020-11-19 10:23:43 -05:00
ObjectYAML [WebAssembly] Add support for named globals in the object format. 2020-11-19 00:17:22 -08:00
Option llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Passes [NPM] Remove -enable-npm-optnone flag 2020-11-18 15:49:16 -08:00
ProfileData llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Remarks llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Support Support: Avoid SmallVector::assign with a range from to-be-replaced vector in Windows GetExecutableName 2020-11-18 17:55:49 -08:00
TableGen [TableGen] Fix missing braces in if statement 2020-11-14 12:38:44 -05:00
Target [AArch64] Lower fptrunc/fpext from/to FP128t to/from FP16 2020-11-19 15:14:50 -03:00
Testing [llvm][NFC] Remove unnecessary vector creation in Annotations 2020-11-14 15:55:09 +00:00
TextAPI llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
ToolDrivers llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Transforms [LoopVectorize] NFC: Fix unused variable warning for MaxSafeDepDist 2020-11-19 17:41:35 +00:00
WindowsManifest llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
XRay llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
CMakeLists.txt llvmbuildectomy - support disabled native target 2020-11-13 15:50:13 +01:00