summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/icdb.c
diff options
context:
space:
mode:
authortedu <>2015-12-09 02:45:23 +0000
committertedu <>2015-12-09 02:45:23 +0000
commit52aece27155bb299c87b2af8d286f2cef62fb70a (patch)
tree4f931f5fb5fe2e7c1f9ded575084b26eb2f3bf07 /src/lib/libc/stdlib/icdb.c
parent83d9cc3cde2fc32d582b308940d1ea7f4814503b (diff)
downloadopenbsd-52aece27155bb299c87b2af8d286f2cef62fb70a.tar.gz
openbsd-52aece27155bb299c87b2af8d286f2cef62fb70a.tar.bz2
openbsd-52aece27155bb299c87b2af8d286f2cef62fb70a.zip
Integrate two patches originally from Daniel Micay.
1. Optionally add random "canaries" to the end of an allocation. This requires increasing the internal size of the allocation slightly, which probably results in a large effective increase with current power of two sizing. Therefore, this option is only enabled via 'C'. 2. When writing junk (0xdf) to freed chunks (current default behavior), check that the junk is still intact when finally freeing the delayed chunk to catch some potential use after free. This should be pretty cheap so there's no option to control it separately. ok deraadt tb
Diffstat (limited to 'src/lib/libc/stdlib/icdb.c')
0 files changed, 0 insertions, 0 deletions