diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-27 16:58:25 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-27 16:58:25 +0000 |
commit | e2cb16d8f40cd7193b27e05c88aa23e0639d38be (patch) | |
tree | 49dad7fc364813d6ad926a1768d4d283ff1e2c4d /src/libmime/email_addr.c | |
parent | dda2df85a29ebf8db1836ecc8f31c5143d827c0d (diff) | |
download | rspamd-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.c | 1 |
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) { |