diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-21 14:10:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-21 14:21:06 +0100 |
commit | 199853aa8371347c2d775e1d773170ff2b5ff210 (patch) | |
tree | 713f502489d1c91400339f350060524facea7025 | |
parent | 39747b3ed4dd2340279208579862c963605e82cf (diff) | |
download | rspamd-199853aa8371347c2d775e1d773170ff2b5ff210.tar.gz rspamd-199853aa8371347c2d775e1d773170ff2b5ff210.zip |
Fix possible illegal memory access.
-rw-r--r-- | src/libserver/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index a52011346..2bab0ca4f 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -1384,7 +1384,7 @@ url_email_end (const gchar *begin, } /* Strip strange symbols at the end */ - if (got_at) { + if (got_at && p < end) { while (p >= match->m_begin && (!is_domain (*p) || *p == '.' || *p == '_')) { p --; |