summaryrefslogtreecommitdiffstats
path: root/lib/libc/db/README
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-03-28 04:00:46 +0000
committerdelphij <delphij@FreeBSD.org>2009-03-28 04:00:46 +0000
commit38e77f44827a3da21018f0a385572fd4c08d9a45 (patch)
tree79143c20fc600108f05874a7856ca9b3575262a2 /lib/libc/db/README
parent2f83429b40ea5e9d7042360ddd01d674a50b4306 (diff)
downloadFreeBSD-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/db/README')
-rw-r--r--lib/libc/db/README8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libc/db/README b/lib/libc/db/README
index bed2c92..1f9ae72 100644
--- a/lib/libc/db/README
+++ b/lib/libc/db/README
@@ -1,4 +1,5 @@
# @(#)README 8.27 (Berkeley) 9/1/94
+# $FreeBSD$
This is version 1.85 of the Berkeley DB code.
@@ -31,10 +32,3 @@ mpool The memory pool routines.
recno The fixed/variable length record routines.
test Test package.
-============================================
-Debugging:
-
-If you're running a memory checker (e.g. Purify) on DB, make sure that
-you recompile it with "-DPURIFY" in the CFLAGS, first. By default,
-allocated pages are not initialized by the DB code, and they will show
-up as reads of uninitialized memory in the buffer write routines.
OpenPOWER on IntegriCloud