]> git.ipfire.org Git - thirdparty/suricata.git/commit
fuzz: specify protocol with fuzz target name
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 29 Mar 2021 18:27:34 +0000 (20:27 +0200)
committerVictor Julien <vjulien@oisf.net>
Wed, 25 Jan 2023 19:26:37 +0000 (20:26 +0100)
commit7986919df0f0ffc3974f27013afba0b8c2523aaa
tree4aa021b58e6cfaa56520f655101448168b2b0580
parent2f8f45ff6a7953b61c5977da1b12e6a7da2172d8
fuzz: specify protocol with fuzz target name

cf https://redmine.openinfosecfoundation.org/issues/4125

This allows fuzz_applayerparser_parse to fuzz one specific
app-layer protocol based on the binary name, as is done
with the environment variable FUZZ_APPLAYER
That is if we rename/copy to fuzz_applayerparser_parse_smb,
it will fuzz only SMB protocol
This way, we can easily produce different fuzz targets for
each protocol in oss-fuzz

(cherry picked from commit e9b76a0e663ce5c2f8900f90a4f4fd7ed3436335)
src/tests/fuzz/fuzz_applayerparserparse.c