[compiler-rt][asan] Make wild-pointer crash error more useful
authorVy Nguyen <vyng@google.com>
Tue, 9 Mar 2021 19:54:42 +0000 (14:54 -0500)
committerVy Nguyen <vyng@google.com>
Fri, 12 Mar 2021 02:48:39 +0000 (21:48 -0500)
commitf65e1aee4004c25fbeacd5024de1d17f0a7ebc5c
tree3c586efed81ca79e9f57804abec3b0c141f9192a
parent11b70b9e3a7458b5b78c30020b56e8ca563a4801
[compiler-rt][asan] Make wild-pointer crash error more useful

Right now, when you have an invalid memory address, asan would just crash and does not offer much useful info.
This patch attempted to give a bit more detail on the access.

Differential Revision: https://reviews.llvm.org/D98280
compiler-rt/lib/asan/asan_descriptions.cpp
compiler-rt/lib/asan/asan_descriptions.h
compiler-rt/test/asan/TestCases/wild_pointer.cpp [new file with mode: 0644]