aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/email_addr.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-27 16:58:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-27 16:58:25 +0000
commite2cb16d8f40cd7193b27e05c88aa23e0639d38be (patch)
tree49dad7fc364813d6ad926a1768d4d283ff1e2c4d /src/libmime/email_addr.c
parentdda2df85a29ebf8db1836ecc8f31c5143d827c0d (diff)
downloadrspamd-e2cb16d8f40cd7193b27e05c88aa23e0639d38be.tar.gz
rspamd-e2cb16d8f40cd7193b27e05c88aa23e0639d38be.zip
[CritFix] Strictly deny unencoded bad utf8 sequences in headers
Diffstat (limited to 'src/libmime/email_addr.c')
-rw-r--r--src/libmime/email_addr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmime/email_addr.c b/src/libmime/email_addr.c
index 3b9f31de9..e1d52e185 100644
--- a/src/libmime/email_addr.c
+++ b/src/libmime/email_addr.c
@@ -202,6 +202,7 @@ rspamd_email_address_check_and_add (const gchar *start, gsize len,
struct rspamd_email_address addr;
/* The whole email is likely address */
+ memset (&addr, 0, sizeof (addr));
rspamd_smtp_addr_parse (start, len, &addr);
if (addr.flags & RSPAMD_EMAIL_ADDR_VALID) {