[PATCH] Fix realloc'ing freed/invalid pointers

Sergey Matveev earthdok at google.com
Mon May 20 04:48:28 PDT 2013



================
Comment at: asan_allocator2.cc:497
@@ +496,3 @@
+
+  AtomicallySetQuarantineFlag(m, ptr, stack);
+  QuarantineChunk(m, ptr, stack, alloc_type);
----------------
Please document that metadata must not be mutated until this function is called. Ditto below.


http://llvm-reviews.chandlerc.com/D818



More information about the llvm-commits mailing list