From: Kern Sibbald Date: Mon, 19 Jul 2010 11:39:29 +0000 (+0200) Subject: Add debug info to smartall.c for buffer overrun X-Git-Tag: Release-7.0.0~1416 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fefa77b618a63132fb45968bc547a88d6ac65989;p=bacula%2Fbacula Add debug info to smartall.c for buffer overrun --- diff --git a/bacula/src/lib/smartall.c b/bacula/src/lib/smartall.c index f3f899b535..db2066d0e5 100644 --- a/bacula/src/lib/smartall.c +++ b/bacula/src/lib/smartall.c @@ -212,6 +212,9 @@ void sm_free(const char *file, int line, void *fp) if (((unsigned char *)cp)[head->ablen - 1] != ((((intptr_t) cp) & 0xFF) ^ 0xC5)) { V(mutex); + Dmsg4(0, "Overrun buffer: len=%d addr=%p allocated: %s:%d\n", + head->ablen, fp, + head->abfname, head->ablineno); Emsg2(M_ABORT, 0, _("Buffer overrun called from %s:%d\n"), file, line); } if (sm_buffers > 0) {