]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: pre process DATA and BDAT commands
authorShivani Bhardwaj <shivanib134@gmail.com>
Tue, 19 Apr 2022 15:33:24 +0000 (21:03 +0530)
committerVictor Julien <vjulien@oisf.net>
Thu, 21 Apr 2022 05:37:58 +0000 (07:37 +0200)
commit474ea4e733bdb3378ac9c6b51ed5e8ac4fb8f644
tree48f9972708d88eec1574b290a541b85e22776a56
parent412b77cc8c970fedc3b13bb24ad4af88eb65a631
smtp: pre process DATA and BDAT commands

The input data received in DATA and BDAT command modes can be huge and
could have important data, like a legit huge email. Therefore, exempt
these from the line buffering limits which were introduced to regulate
the size of lines that we buffer at any point in time.

As a part of this patch, anything that comes under DATA or BDAT is
processed early without buffering as and when it arrives. The ways of
processing remain the same as before.

(cherry picked from commit cf749fd450ca41dc001c2a1c10d8d17500dcedce)
src/app-layer-smtp.c
src/app-layer-smtp.h