From c7181950f3493ca9216d41ff1f5bf0e783f55f2e Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 20 Jul 2002 04:18:20 +0000 Subject: 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) --- lib/libstand/zutil.h.diff | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/libstand/zutil.h.diff (limited to 'lib/libstand/zutil.h.diff') 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 +-# include +-# include +-#endif ++#include "stand.h" + #ifdef NO_ERRNO_H + extern int errno; -- cgit v1.1