diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-25 11:28:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-25 11:28:59 +0100 |
commit | 8cd410a8caf15016f3edecb00a67d3c6f0dfa584 (patch) | |
tree | e6782837ca812e39d3b32a773aafa407b6120f0f /src/libutil/printf.c | |
parent | 67cfd2b7bec66c2cc77e3b2a7aa498c097a730b2 (diff) | |
download | rspamd-8cd410a8caf15016f3edecb00a67d3c6f0dfa584.tar.gz rspamd-8cd410a8caf15016f3edecb00a67d3c6f0dfa584.zip |
[Fix] Fix printing of NULL pointer with fixed length
Diffstat (limited to 'src/libutil/printf.c')
-rw-r--r-- | src/libutil/printf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/printf.c b/src/libutil/printf.c index 9db2bfe7d..b0229c73a 100644 --- a/src/libutil/printf.c +++ b/src/libutil/printf.c @@ -801,6 +801,7 @@ rspamd_vprintf_common (rspamd_printf_append_func func, p = va_arg (args, gchar *); if (p == NULL) { p = "(NULL)"; + slen = sizeof ("(NULL)") - 1; } if (G_UNLIKELY (b32)) { |