Date: Sat, 28 Mar 2009 04:00:46 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/db README src/lib/libc/db/btree bt_open.c bt_split.c src/lib/libc/db/hash hash_buf.c src/lib/libc/db/mpool mpool.c Message-ID: <200903280401.n2S419YP043419@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
delphij 2009-03-28 04:00:46 UTC FreeBSD src repository Modified files: lib/libc/db README lib/libc/db/btree bt_open.c bt_split.c lib/libc/db/hash hash_buf.c lib/libc/db/mpool mpool.c Log: SVN rev 190482 on 2009-03-28 04:00:46Z by delphij 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). Revision Changes Path 1.2 +1 -7 src/lib/libc/db/README 1.16 +2 -4 src/lib/libc/db/btree/bt_open.c 1.11 +1 -4 src/lib/libc/db/btree/bt_split.c 1.10 +6 -9 src/lib/libc/db/hash/hash_buf.c 1.16 +1 -4 src/lib/libc/db/mpool/mpool.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903280401.n2S419YP043419>