summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis/TBAATest.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-11-08 20:45:45 +0000
committerReid Kleckner <rnk@google.com>2016-11-08 20:45:45 +0000
commitd092107b0e07b1861e541e5f21b342a74218ccb9 (patch)
tree38d1e30cf5c82002f9bcbd9d99d326a340828e04 /llvm/unittests/Analysis/TBAATest.cpp
parent6cddfc14f9d0ada23ba5a22902e0140260788058 (diff)
downloadbcm5719-llvm-d092107b0e07b1861e541e5f21b342a74218ccb9.tar.gz
bcm5719-llvm-d092107b0e07b1861e541e5f21b342a74218ccb9.zip
[asan/win] Add init hooks to .CRT$XLAB
Summary: User applications may register hooks in the .CRT$XL* callback list, which is called very early by the loader. This is very common in Chromium: https://cs.chromium.org/search/?q=CRT.XL&sq=package:chromium&type=cs This has flown under the radar for a long time because the loader appears to catch exceptions originating from these callbacks. It's a real problem when you're debugging an asan application, though, since it makes the program crash early. The solution is to add our own callback to this list, and sort it very early in the list like we do elsewhere. Also add a test with such an instrumented callback, and test that it gets called with asan. Reviewers: etienneb Subscribers: llvm-commits, kubabrecka Differential Revision: https://reviews.llvm.org/D26404 llvm-svn: 286290
Diffstat (limited to 'llvm/unittests/Analysis/TBAATest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud