diff options
author | Alexander Potapenko <glider@google.com> | 2012-06-20 22:29:09 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2012-06-20 22:29:09 +0000 |
commit | f9f2fbacb38e303819f15b9728887dea547b7957 (patch) | |
tree | 9df96d6679d5cf30d2f5e2b347ab3c9a80cf9f5e /llvm/lib/CodeGen/InterferenceCache.cpp | |
parent | 2ed08a7cc1431c3ff8defff9e61924b606475bc8 (diff) | |
download | llvm-f9f2fbacb38e303819f15b9728887dea547b7957.zip llvm-f9f2fbacb38e303819f15b9728887dea547b7957.tar.gz llvm-f9f2fbacb38e303819f15b9728887dea547b7957.tar.bz2 |
Actually intercept free() to ensure that the deallocations caused by other functions directly calling it are routed to our allocator.
For the allocations that do not belong to any malloc zone check whether they're padded with a pointer to ASan's CFAllocator. If so, free the original (unpadded) pointer.
This should fix AddressSanitizerMac.NSURLDeallocation and issue 70.
llvm-svn: 158863
Diffstat (limited to 'llvm/lib/CodeGen/InterferenceCache.cpp')
0 files changed, 0 insertions, 0 deletions