From 7f2524bde99977d1e3ac306a17dbb0928e2fe7b0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 11 Nov 2015 00:34:30 +0000 Subject: [PATCH] Fix unfolded base64 encoding --- src/libutil/str_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 8254aa2ad..c4b0ea173 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -624,7 +624,7 @@ rspamd_encode_base64_common (const guchar *in, gsize inlen, gint str_len, } } \ while (0) - gsize allocated_len = (inlen / 3) * 4 + 4; + gsize allocated_len = (inlen / 3) * 4 + 5; gchar *out, *o; guint64 n; guint32 rem, t, carry; -- 2.39.5