Closed ramosian-glider closed 9 years ago
This fix is simple (below), but it may have non-zero performance cost.
Will check next week.
===================================================================
--- asan_allocator.cc (revision 155126)
+++ asan_allocator.cc (working copy)
@@ -498,6 +498,7 @@
CHECK(m->chunk_state == CHUNK_QUARANTINE);
m->chunk_state = CHUNK_AVAILABLE;
+ PoisonShadow((uintptr_t)m, m->Size(), kAsanHeapLeftRedzoneMagic);
CHECK(m->alloc_tid >= 0);
CHECK(m->free_tid >= 0);
Reported by konstantin.s.serebryany
on 2012-04-19 15:07:18
This change slows down the stress test by 5%:
(ASAN_OPTIONS=quarantine_size=1 ./bin_linux/asan_test64 --gtest_filter=AddressSanitizer.MallocStressTest)
This translates to a tolerable extra slowdown on usual programs.
LLVM r155344.
Reported by konstantin.s.serebryany
on 2012-04-23 10:10:40
Fixed
Adding Project:AddressSanitizer as part of GitHub migration.
Reported by ramosian.glider
on 2015-07-30 09:12:59
Originally reported on Google Code with ID 66
Reported by
konstantin.s.serebryany
on 2012-04-19 14:53:16