]> 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)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 21 Apr 2022 07:31:56 +0000 (13:01 +0530)
commita63133a4b6ebe4dc83298f38de50e5c73efe82f0
tree038f155c65f58b189d031adfd0b1033337ca1acb
parent7f5115395fd918417e4914ab42143f2ee91e6e28
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