diff options
author | delphij <delphij@FreeBSD.org> | 2009-03-28 04:00:46 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-03-28 04:00:46 +0000 |
commit | 38e77f44827a3da21018f0a385572fd4c08d9a45 (patch) | |
tree | 79143c20fc600108f05874a7856ca9b3575262a2 /lib/libc/stdio/putw.c | |
parent | 2f83429b40ea5e9d7042360ddd01d674a50b4306 (diff) | |
download | FreeBSD-src-38e77f44827a3da21018f0a385572fd4c08d9a45.zip FreeBSD-src-38e77f44827a3da21018f0a385572fd4c08d9a45.tar.gz |
When allocating memory, zero out them if we don't intend to overwrite them
all; before freeing memory, zero out them before we release it as free
heap. This will eliminate some potential information leak issue.
While there, remove the PURIFY option. There is a slight difference between
the new behavior and the old -DPURIFY behavior, with the latter initializes
memory with 0xff's. The difference between old and new approach does not
generate observable difference.
Obtained from: OpenBSD (partly).
Diffstat (limited to 'lib/libc/stdio/putw.c')
0 files changed, 0 insertions, 0 deletions