diff options
author | pjd <pjd@FreeBSD.org> | 2006-01-31 11:09:21 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-01-31 11:09:21 +0000 |
commit | 645dd7b662b95a91b935a1b4b9d354770a873a8d (patch) | |
tree | 5578d06f9b3e97650d2847a2198d21f29bb26546 /sys/conf/options | |
parent | 8920c8cd7449851a87b664de80046b23913acd5e (diff) | |
download | FreeBSD-src-645dd7b662b95a91b935a1b4b9d354770a873a8d.zip FreeBSD-src-645dd7b662b95a91b935a1b4b9d354770a873a8d.tar.gz |
Add buffer corruption protection (RedZone) for kernel's malloc(9).
It detects both: buffer underflows and buffer overflows bugs at runtime
(on free(9) and realloc(9)) and prints backtraces from where memory was
allocated and from where it was freed.
Tested by: kris
Diffstat (limited to 'sys/conf/options')
-rw-r--r-- | sys/conf/options | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/options b/sys/conf/options index d5c9df6..84aa1e4 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -530,6 +530,9 @@ PQ_NOOPT opt_vmpage.h # The MemGuard replacement allocator used for tamper-after-free detection DEBUG_MEMGUARD opt_vm.h +# The RedZone malloc(9) protection +DEBUG_REDZONE opt_vm.h + # Standard SMP options SMP opt_global.h |