From 199853aa8371347c2d775e1d773170ff2b5ff210 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 21 May 2015 14:10:52 +0100 Subject: [PATCH] Fix possible illegal memory access. --- src/libserver/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 --; -- 2.39.5