diff options
author | Alexander Potapenko <glider@google.com> | 2012-11-15 15:24:42 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2012-11-15 15:24:42 +0000 |
commit | e406c8c47570659287e619e23479f9fb6640299e (patch) | |
tree | 517370a270fea26b9fb8af27b012fa672f59997e /lib/asan/asan_allocator.cc | |
parent | c78349f2167766d275ebb7e7113828c469ec7bf0 (diff) |
[ASan] Revert r168040 and r168043 and take a cleaner solution suggested by Kostya: return the known frame name for fake stack instead of looking it up.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_allocator.cc')
-rw-r--r-- | lib/asan/asan_allocator.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/asan/asan_allocator.cc b/lib/asan/asan_allocator.cc index d864ea1f7..de3713756 100644 --- a/lib/asan/asan_allocator.cc +++ b/lib/asan/asan_allocator.cc @@ -998,10 +998,6 @@ void FakeStack::OnFree(uptr ptr, uptr size, uptr real_stack) { CHECK(fake_frame->descr != 0); CHECK(fake_frame->size_minus_one == size - 1); PoisonShadow(ptr, size, kAsanStackAfterReturnMagic); - CHECK(size >= SHADOW_GRANULARITY); - // Poison the leftmost shadow byte with a special value so that we can find - // the beginning of the fake frame when reporting an error. - PoisonShadow(ptr, SHADOW_GRANULARITY, kAsanStackAfterReturnLeftMagic); } } // namespace __asan |