]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: handle DATA mode in middle of input parsing
authorShivani Bhardwaj <shivani@oisf.net>
Tue, 4 Apr 2023 06:32:03 +0000 (12:02 +0530)
committerVictor Julien <vjulien@oisf.net>
Wed, 14 Jun 2023 04:58:21 +0000 (06:58 +0200)
commit432842ad69576c8ccd80570fb266f4f89fca3751
tree9cce9ccfea6eb78d0f7b7536790bcd99c1c864f8
parent7b7d4d236b95a0dbc973103eaf20d63240aeccda
smtp: handle DATA mode in middle of input parsing

Before:
If the input was such that we'd enter DATA mode in the middle, the
entire data would be passed through SMTPGetLine fn and be processed with
line limits etc in place.

After:
Since we don't want any limits to be enforced on DATA, we pass it to
SMTPPreProcessCommands fn to take care of it differently from the
commands.

Bug 5981
src/app-layer-smtp.c