]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: enforce line limit even when LF is found 8713/head
authorShivani Bhardwaj <shivani@oisf.net>
Tue, 4 Apr 2023 06:28:42 +0000 (11:58 +0530)
committerVictor Julien <vjulien@oisf.net>
Wed, 12 Apr 2023 11:59:09 +0000 (13:59 +0200)
commit5f52b199ff0a49628fa00103d86bd72c5792a6b0
tree94284940d1fbd215f080c895947855ce00461188
parentfd4e0fbafedd23bc4a0f6ab874e20f73cb40d1e0
smtp: enforce line limit even when LF is found

Before:
If LF character was found, so far, we won't enforce the line limit on
the line. We only enforced limits in case of LF character missing in a
long line.

After this patch:
Line limit is enforced on the line if it is bigger than 4096 Bytes
irrespective of whether LF was found or not.

Redmine Bug: 5819
src/app-layer-smtp.c