mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
ae3c34854e
Summary: If the decoding functions are called with both start and end pointers being nullptr, the function will crash due to a nullptr dereference. This happens because the function does not recognise nullptr as a valid end pointer. Obviously, nobody is going to pass null pointers here deliberately, but it can happen indirectly (as it did for me), when calling these functions on an ArrayRef, as a default-initialized empty ArrayRef will have both begin() and end() pointers equal to nullptr. The fix is to simply remove the nullptr check. Passing nullptr for "end" with a valid "begin" pointer will still work, as one cannot reach nullptr by incrementing a valid pointer without triggerring UB. Reviewers: dblaikie Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77304 |
||
---|---|---|
.. | ||
ADT | ||
Analysis | ||
AsmParser | ||
BinaryFormat | ||
Bitcode | ||
Bitstream | ||
CodeGen | ||
DebugInfo | ||
Demangle | ||
ExecutionEngine | ||
Frontend | ||
FuzzMutate | ||
IR | ||
LineEditor | ||
Linker | ||
MC | ||
MI | ||
Object | ||
ObjectYAML | ||
Option | ||
Passes | ||
ProfileData | ||
Remarks | ||
Support | ||
TableGen | ||
Target | ||
TextAPI | ||
tools | ||
Transforms | ||
XRay | ||
CMakeLists.txt | ||
unittest.cfg.in |