]> git.ipfire.org Git - thirdparty/suricata.git/commit
fuzz/mime: fix call conditions and args 7587/head
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 18:01:53 +0000 (20:01 +0200)
commitac93f568ebe2dc25c9d6c59e79697d256ce6f399
treef2f3cb394999abb232f9bc630f7d0a37f685d1da
parent3384ca9be23237e7dfe49a6d957b6281d43f168f
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.

(cherry picked from commit 816bbeb7dc3684d47d47c35a2255db0671760baa)
src/tests/fuzz/fuzz_mimedecparseline.c