]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: pre process DATA and BDAT commands
authorShivani Bhardwaj <shivanib134@gmail.com>
Thu, 14 Apr 2022 15:59:32 +0000 (21:29 +0530)
committerVictor Julien <vjulien@oisf.net>
Wed, 20 Apr 2022 10:27:08 +0000 (12:27 +0200)
commitcf749fd450ca41dc001c2a1c10d8d17500dcedce
tree99c6134ec6982779ad916599686ab99a2db30eb2
parent078c251deacc78b8abb40c5ab89d19c29e31bdf8
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.
src/app-layer-smtp.c