summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2016-05-02 15:23:01 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2016-05-02 15:23:01 +0000
commita90528bb89916d06edc27c6e33c69e4a384b84a3 (patch)
treea80cc1786e4890b6e6e5bc51982d4b133265a0a6 /llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
parent0b75fd81e1776c46edc048b234828955cf7692b6 (diff)
downloadbcm5719-llvm-a90528bb89916d06edc27c6e33c69e4a384b84a3.tar.gz
bcm5719-llvm-a90528bb89916d06edc27c6e33c69e4a384b84a3.zip
[sanitizer] Fix a crash in SizeClassAllocator32 with an out-of-range pointer
This happens on a 64-bit platform that uses SizeClassAllocator32 (e.g. ASan on AArch64). When querying a large invalid pointer, `__sanitizer_get_allocated_size(0xdeadbeefdeadbeef)`, an assertion will fail. This patch changes PointerIsMine to return false if the pointer is outside of [kSpaceBeg, kSpaceBeg + kSpaceSize). Differential Revision: http://reviews.llvm.org/D15008 llvm-svn: 268243
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud