]> 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 <victor@inliniac.net>
Fri, 9 Apr 2021 09:33:08 +0000 (11:33 +0200)
commite9b76a0e663ce5c2f8900f90a4f4fd7ed3436335
treeabf2fd3baa19a26b79554e674d96f33d224fd204
parent6da9a37285a50b513077e5c88094f8112740ffcb
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
src/tests/fuzz/fuzz_applayerparserparse.c