diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-17 17:25:13 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-17 17:25:13 +0000 |
commit | 5c8b497d76a935153d92d509b14c90fdaa1a4577 (patch) | |
tree | 7c6579a331c54a07e07d7dcc42bdd5692abfe833 /src | |
parent | 41022eff3cee711643ca3e3f4d1fa19b1aa0e825 (diff) | |
download | rspamd-5c8b497d76a935153d92d509b14c90fdaa1a4577.tar.gz rspamd-5c8b497d76a935153d92d509b14c90fdaa1a4577.zip |
[Minor] Core: Fix length calculations
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/str_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 949bdd337..0c63edba2 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -935,7 +935,7 @@ rspamd_encode_qp_fold (const guchar *in, gsize inlen, gint str_len, span += 3; } - if (str_len > 0 && span >= str_len) { + if (str_len > 0 && span + 3 >= str_len) { if (how == RSPAMD_TASK_NEWLINES_CRLF) { /* =\r\n */ olen += 3; |