Added memory corruption checks to stacktrace.c
authorPekka Riikonen <priikone@silcnet.org>
Mon, 11 Feb 2008 14:45:24 +0000 (16:45 +0200)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 11 Feb 2008 14:45:24 +0000 (16:45 +0200)
commitadf03e69c4e96ffdac88e7cfe9c2b4583166eb6e
tree30b8459efd65f4c16abf60d224adec1fc733c797
parent2ede5da9520e7e8508ae28656d542824c4c29793
Added memory corruption checks to stacktrace.c

The stacktrace now produces backtraces using backtrace().

The stacktrace now supports basic memory corruption checks in
addition of memory leak checks.  It supports double free checks,
invalid free checks and out of bound checks.

Environment variables SILC_MALLOC_NO_FREE and SILC_MALLOC_DUMP
can be used to get even more information out of it.
configure.ad
lib/silcutil/silcenv.c
lib/silcutil/silcmemory.h
lib/silcutil/stacktrace.c
lib/silcutil/stacktrace.h