[ASan] Clear allocation magic value before recycling the chunk. This led to spurious...
commita292152eb471edc44021b94e974059a71e8bed13
authorAlexey Samsonov <samsonov@google.com>
Thu, 20 Jun 2013 08:13:06 +0000 (20 08:13 +0000)
committerAlexey Samsonov <samsonov@google.com>
Thu, 20 Jun 2013 08:13:06 +0000 (20 08:13 +0000)
treeeacd4e0ee10ba6bac7ecc538ac93f7b8b922c333
parent5f672c4bd8485af39b6bbc3500a8f1b71de1002f
[ASan] Clear allocation magic value before recycling the chunk. This led to spurious crashes in LSan when it walked through reused chunks. Don't know how to create not-brittle test case for this.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184404 91177308-0d34-0410-b5e6-96231b3b80d8
lib/asan/asan_allocator2.cc