[PATCH] D30101: [asan] Implement "scribble" flag, which overwrites free'd memory with 0x55
Kuba (Brecka) Mracek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 27 13:08:13 PDT 2017
kubamracek updated this revision to Diff 93170.
kubamracek added a comment.
Updating patch. This now uses the max_malloc_fill_size/max_free_fill_size and malloc_fill_byte/free_fill_byte flag names. We're also turning this on with the same env vars as Malloc Scribble on macOS does (https://developer.apple.com/library/content/documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html).
https://reviews.llvm.org/D30101
Files:
lib/asan/asan_allocator.cc
lib/asan/asan_flags.cc
lib/asan/asan_flags.inc
test/asan/TestCases/scribble.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30101.93170.patch
Type: text/x-patch
Size: 4363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170327/834a288c/attachment.bin>
More information about the llvm-commits
mailing list