summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/system.c
diff options
context:
space:
mode:
authordjm <>2012-11-02 18:18:15 +0000
committerdjm <>2012-11-02 18:18:15 +0000
commitcc27290cd0ac9c8a750e38719b5dff3cb0219726 (patch)
tree5ac95b51be61afab38ef830fc97336aacc9973c7 /src/lib/libc/stdlib/system.c
parente05982c56ef9dbde368df8fe35a8458f34b76f76 (diff)
downloadopenbsd-cc27290cd0ac9c8a750e38719b5dff3cb0219726.tar.gz
openbsd-cc27290cd0ac9c8a750e38719b5dff3cb0219726.tar.bz2
openbsd-cc27290cd0ac9c8a750e38719b5dff3cb0219726.zip
Add a new malloc option 'U' => "Free unmap" that does the guarding/
unmapping of freed allocations without disabling chunk randomisation like the "Freeguard" ('F') option does. Make security 'S' option use 'U' and not 'F'. Rationale: guarding with no chunk randomisation is great for debugging use-after-free, but chunk randomisation offers better defence against "heap feng shui" style attacks that depend on carefully constructing a particular heap layout so we should leave this enabled when requesting security options.
Diffstat (limited to 'src/lib/libc/stdlib/system.c')
0 files changed, 0 insertions, 0 deletions