From: Jeremy Harris Date: Wed, 30 Sep 2015 15:23:42 +0000 (+0100) Subject: Increase verbosity of (panic)log message for string_sprintf overflow X-Git-Tag: exim-4_87_RC1~84 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/7e09992e0fb2d70750a686939636cf40f2a06ae3 Increase verbosity of (panic)log message for string_sprintf overflow --- diff --git a/src/src/string.c b/src/src/string.c index a3fbc4ea5..b76b0abbc 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -717,8 +717,9 @@ uschar buffer[STRING_SPRINTF_BUFFER_SIZE]; va_start(ap, format); if (!string_vformat(buffer, sizeof(buffer), format, ap)) log_write(0, LOG_MAIN|LOG_PANIC_DIE, - "string_sprintf expansion was longer than " SIZE_T_FMT " (%s)", - sizeof(buffer), format); + "string_sprintf expansion was longer than " SIZE_T_FMT + "; format string was (%s)\nexpansion started '%.32s'", + sizeof(buffer), format, buffer); va_end(ap); return string_copy(buffer); }