aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/printf.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-25 13:30:24 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-25 13:30:24 +0100
commit92a1f7a412f35354e3e471aadeeba537b18ab45e (patch)
tree673f5af2b5cafbc4a3325282882c8bc6c192502b /src/libutil/printf.c
parente9555957fd913d928c6dc4b6ca8373f2c4691848 (diff)
downloadrspamd-92a1f7a412f35354e3e471aadeeba537b18ab45e.tar.gz
rspamd-92a1f7a412f35354e3e471aadeeba537b18ab45e.zip
[Fix] Fix buffer overflow when printing small floats
Diffstat (limited to 'src/libutil/printf.c')
-rw-r--r--src/libutil/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/printf.c b/src/libutil/printf.c
index 84dd5d272..6739fe142 100644
--- a/src/libutil/printf.c
+++ b/src/libutil/printf.c
@@ -591,7 +591,7 @@ rspamd_vprintf_common (rspamd_printf_append_func func,
const gchar *fmt,
va_list args)
{
- gchar zero, numbuf[G_ASCII_DTOSTR_BUF_SIZE], dtoabuf[24], *p, *last, c;
+ gchar zero, numbuf[G_ASCII_DTOSTR_BUF_SIZE], dtoabuf[32], *p, *last, c;
const gchar *buf_start = fmt, *fmt_start = NULL;
gint d;
gdouble f;