]> git.ipfire.org Git - thirdparty/suricata.git/commit
fuzz/mime: fix call conditions and args
authorVictor Julien <vjulien@oisf.net>
Tue, 28 Jun 2022 18:20:37 +0000 (20:20 +0200)
committerVictor Julien <vjulien@oisf.net>
Wed, 29 Jun 2022 07:38:22 +0000 (09:38 +0200)
commit816bbeb7dc3684d47d47c35a2255db0671760baa
tree1304ede43aa32d82fe4d8a36cf0a225ef66764c7
parentd81582c4a2b5b9cd6000c8637a7c6bc9b8f4dfd6
fuzz/mime: fix call conditions and args

The SMTP parser should not supply lines w/o EOL chars to the mime
parser unless its in the BODY parsing stage. Mimic this in the fuzz
target by testing the state for inputs that have no EOL.

Additionally, make sure the delim cnt reflects the missing EOL.
src/tests/fuzz/fuzz_mimedecparseline.c