summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/linkage.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-06-04 12:19:31 +0000
committerAlexey Samsonov <samsonov@google.com>2013-06-04 12:19:31 +0000
commit8f5138a23fca4398369df606877067c7aa4ef01b (patch)
tree069c72c50f37e37deb8cfaa923d303026c1a9944 /clang/test/CodeGenCXX/linkage.cpp
parent5cf30be6e4c70bb06482e7d90e4d5bf491abd208 (diff)
downloadbcm5719-llvm-8f5138a23fca4398369df606877067c7aa4ef01b.tar.gz
bcm5719-llvm-8f5138a23fca4398369df606877067c7aa4ef01b.zip
Call __asan_free_hook() before marking the chunk quarantinned
Summary: With this change, the user may safely call __asan_get_ownership() from malloc/free hooks and assume it would return "true". If there is a realloc/free race, free hook might be called twice, but I think it's acceptable, as it's a data race and would later be reported anyway. This change also fixes a bug when failing realloc incorrectly marked the original memory as "quarantinned". Reviewers: timurrrr, kcc, samsonov Reviewed By: samsonov CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D913 llvm-svn: 183220
Diffstat (limited to 'clang/test/CodeGenCXX/linkage.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud