summaryrefslogtreecommitdiff
path: root/lib/msan/msan_flags.h
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-09-16 11:03:31 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-09-16 11:03:31 +0000
commiteffdc7e483708cfa4dc597c21f246c5dbc09daa0 (patch)
treed24a8dd8d1b4a1ff815ae426f8e82187064010bf /lib/msan/msan_flags.h
parent1effc056910803fd8213ac940e9d17f3c0160b4b (diff)
[msan] Fix origin of deallocated memory.
MSan poisons deallocated memory but it used to give it an invalid origin value, resulting in confusing reports. This change associates deallocation stack trace with such memory. Note that MSan does not have quarantine, and use-after-free detection is very limited. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_flags.h')
-rw-r--r--lib/msan/msan_flags.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/msan/msan_flags.h b/lib/msan/msan_flags.h
index f05263247..318ea7cf4 100644
--- a/lib/msan/msan_flags.h
+++ b/lib/msan/msan_flags.h
@@ -23,6 +23,7 @@ struct Flags {
bool poison_heap_with_zeroes; // default: false
bool poison_stack_with_zeroes; // default: false
bool poison_in_malloc; // default: true
+ bool poison_in_free; // default: true
bool report_umrs;
bool wrap_signals;
bool halt_on_error;