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-5.2.1~951 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f453f00d1e66dff0a5e94f50e70f699c1a1e7abe;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) {