projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1bd189
)
Increase verbosity of (panic)log message for string_sprintf overflow
author
Jeremy Harris
<jgh146exb@wizmail.org>
Wed, 30 Sep 2015 15:23:42 +0000
(16:23 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Wed, 30 Sep 2015 15:23:42 +0000
(16:23 +0100)
src/src/string.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/string.c
b/src/src/string.c
index a3fbc4ea577999f9aedd1721fd5420480600a10a..b76b0abbc964a894f8eb9863c5e02fe91c5fdb08 100644
(file)
--- 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);
}