diff options
author | peter <peter@FreeBSD.org> | 2002-07-20 04:18:20 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-07-20 04:18:20 +0000 |
commit | c7181950f3493ca9216d41ff1f5bf0e783f55f2e (patch) | |
tree | 95f9d7512ae7144422a04c5de32a3fa7f9db0f88 /lib/libstand/zutil.h.diff | |
parent | 7409589c7afc48621815fb92ece4a2ad2fe9cd75 (diff) | |
download | FreeBSD-src-c7181950f3493ca9216d41ff1f5bf0e783f55f2e.zip FreeBSD-src-c7181950f3493ca9216d41ff1f5bf0e783f55f2e.tar.gz |
Reimplement malloc/free debugging that includes the offending file:line
info. This turned out to be rather useful on ia64 for tracking down
malloc/free problems.
Detect duplicate free()'s - otherwise these show up as a guard1 failure
and it looks like corruption instead of something simple like a second
free() where there shouldn't be.
Deal with libz using libc headers and not seeing the malloc/free stuff that
we provide in libstand. Do similar nastiness to what is done for bzlib.
Tested on: i386, ia64 (compile, run)
Diffstat (limited to 'lib/libstand/zutil.h.diff')
-rw-r--r-- | lib/libstand/zutil.h.diff | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libstand/zutil.h.diff b/lib/libstand/zutil.h.diff new file mode 100644 index 0000000..0d8193f --- /dev/null +++ b/lib/libstand/zutil.h.diff @@ -0,0 +1,15 @@ +$FreeBSD$ +--- zutil.h Fri Jun 28 23:58:21 2002 ++++ zutil.h Fri Jun 28 23:56:24 2002 +@@ -15,11 +15,7 @@ + + #include "zlib.h" + +-#ifdef STDC +-# include <stddef.h> +-# include <string.h> +-# include <stdlib.h> +-#endif ++#include "stand.h" + #ifdef NO_ERRNO_H + extern int errno; |