Go to file
Alexey Samsonov 8f5138a23f 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
2013-06-04 12:19:31 +00:00
clang Fix typo in comment. Found by -Wdocumentation. 2013-06-04 09:13:21 +00:00
clang-tools-extra cpp11-migrate: turn off PID-based perf data filenames 2013-06-03 21:14:24 +00:00
compiler-rt Call __asan_free_hook() before marking the chunk quarantinned 2013-06-04 12:19:31 +00:00
debuginfo-tests Remove IR scenario tests. 2013-03-15 20:52:10 +00:00
libclc Update the copyright coredits -- Happy new year 2013! 2013-01-01 10:00:19 +00:00
libcxx Neglected to remove a debugging comment from last commit. 2013-05-21 21:19:35 +00:00
libcxxabi Add capability to demangle invocation functions for ObjC blocks. 2013-04-10 19:44:03 +00:00
lld [lld][ELF] Add parser for linker script ENTRY command 2013-06-03 18:05:21 +00:00
lldb If ThreadPlanCallFunction hasn't set its notion of the "real stop info" yet, just return the current PrivateStopInfo. 2013-06-04 01:40:51 +00:00
llvm Typo: s/caes/cases/ in SimplifyCFG 2013-06-04 11:22:30 +00:00
polly scop detection: do not call getAliasSetForPointer when IgnoreAliasing 2013-06-03 16:35:41 +00:00