]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: enforce line limit even when LF is found 8721/head
authorShivani Bhardwaj <shivani@oisf.net>
Tue, 4 Apr 2023 06:28:42 +0000 (11:58 +0530)
committerVictor Julien <vjulien@oisf.net>
Thu, 13 Apr 2023 05:34:49 +0000 (07:34 +0200)
commit92d72344fb0e80b09efe4c4ac86538118502adaf
treefc9e10ce63ee3bba48f21d08b120bed5e0a4c180
parent08fd66718a9aede768ea10c95ba73d47ea9ce976
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

(cherry picked from commit 5f52b199ff0a49628fa00103d86bd72c5792a6b0)
src/app-layer-smtp.c