summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/lit_tests/malloc_hook.cc
Commit message (Collapse)AuthorAgeFilesLines
* [ASan] move all lit_tests under TestCasesAlexey Samsonov2013-06-061-36/+0
| | | | llvm-svn: 183395
* Call __asan_free_hook() before marking the chunk quarantinnedAlexey Samsonov2013-06-041-2/+14
| | | | | | | | | | | | | | | | | | | | | 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
* [ASan] use write instead of puts in malloc hooks test for ASan, as puts ↵Alexey Samsonov2012-08-221-3/+7
| | | | | | calls malloc on Mac llvm-svn: 162359
* [ASan] make ASan malloc/free hooks weak interface functions, overridable by ↵Alexey Samsonov2012-08-221-0/+20
user. Now the user can control malloc/free hooks without recompiling ASan runtime llvm-svn: 162355
OpenPOWER on IntegriCloud