aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-03-30 15:44:57 +0000
committerKuba Mracek <mracek@apple.com>2017-03-30 15:44:57 +0000
commitfe7e91b0033fb44b09764d13cc7346ffe6dec15e (patch)
tree2a0e231852b435f55f1dfecf1cf3c1fbcd18c4a2 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent281979b12d4756bbba4ea48c052ad8a18af6469f (diff)
downloadllvm-fe7e91b0033fb44b09764d13cc7346ffe6dec15e.zip
llvm-fe7e91b0033fb44b09764d13cc7346ffe6dec15e.tar.gz
llvm-fe7e91b0033fb44b09764d13cc7346ffe6dec15e.tar.bz2
[asan] Implement "scribble" flags, which overwrite free'd memory with 0x55
This patch implements "Malloc Scribble" in ASan via "max_free_fill_size" and "free_fill_byte" flags, which can be used to overwrite free()'d memory. We also match the behavior of MallocScribble and MallocPreScribble env vars on macOS (see https://developer.apple.com/library/content/documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html), which is a helpful tool to detect use-after-free bugs that happen in non-instrumented code. Differential Revision: https://reviews.llvm.org/D30101 llvm-svn: 299085
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions