diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-25 10:13:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-25 10:13:48 +0100 |
commit | 817a42ec5ed9ef52a8ab5fade2440360d2dad470 (patch) | |
tree | 8ca16f986eb87201b814067271f7d6fa9f70e2cd /src/libmime/mime_headers.c | |
parent | 0295d3ba5d02bf65370db6bdd197bdd8f50a0f91 (diff) | |
download | rspamd-817a42ec5ed9ef52a8ab5fade2440360d2dad470.tar.gz rspamd-817a42ec5ed9ef52a8ab5fade2440360d2dad470.zip |
[Minor] Some sanity check
Diffstat (limited to 'src/libmime/mime_headers.c')
-rw-r--r-- | src/libmime/mime_headers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c index 085dd3313..26c4165f8 100644 --- a/src/libmime/mime_headers.c +++ b/src/libmime/mime_headers.c @@ -260,7 +260,7 @@ rspamd_mime_headers_process (struct rspamd_task *task, if (*p == '\n') { nlines_count[RSPAMD_TASK_NEWLINES_LF] ++; } - else if (*(p + 1) == '\n') { + else if (p + 1 < end && *(p + 1) == '\n') { nlines_count[RSPAMD_TASK_NEWLINES_CRLF] ++; } else { |