]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: handle following cmd if LF was found in long line
authorShivani Bhardwaj <shivani@oisf.net>
Sat, 6 May 2023 11:46:30 +0000 (17:16 +0530)
committerVictor Julien <vjulien@oisf.net>
Wed, 14 Jun 2023 04:58:31 +0000 (06:58 +0200)
commit79a1b2edb5f4063d270bfbd7e765ace275ba9267
treec6d193904c4f9e80241eb2689d81349e60b83c61
parentf5db4bb7d545aabba84d1b2f024a2d551f234c4d
smtp: handle following cmd if LF was found in long line

If a long line had LF post the limit, it should be considered complete
and not wait for the next line to complete it. However, currently, any
following lines were skipped which could sometimes also be important
commands for the entire transaction.

Fix this by setting a flag in case we're truncating a long line but
after having found the LF character.

Bug 5989
src/app-layer-smtp.c
src/app-layer-smtp.h