diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-09 15:56:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-09 15:56:34 +0000 |
commit | d2217897a7e43e395138b4466ed5ed582bc7ef4e (patch) | |
tree | 81f882e3a3531095e36515362d300de50f97eed5 /src/libserver/url.c | |
parent | 64bb6ba5b96eb1c8d18eb018313d2a5c6c557e4f (diff) | |
download | rspamd-d2217897a7e43e395138b4466ed5ed582bc7ef4e.tar.gz rspamd-d2217897a7e43e395138b4466ed5ed582bc7ef4e.zip |
[Fix] Add guard when searching for email urls
Diffstat (limited to 'src/libserver/url.c')
-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 76306d9be..4d0969a97 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -1911,7 +1911,7 @@ url_email_end (struct url_callback_data *cb, p --; } - if (g_ascii_isalnum (*p)) { + if (p < cb->end && g_ascii_isalnum (*p)) { p ++; } |