Philippe Antoine
df83f7899d
fuzz: fix integer warnings
...
Ticket: 4516
4 years ago
Philippe Antoine
5fe9188a95
fuzz: test for too many open txs in a flow
...
so as to avoid performance problems coming from this.
4 years ago
Philippe Antoine
b39554b11f
fuzz: target for applayer cleans transactions
...
Ticket: 4530
Otherwise, we timeout because we kept too many of them
as Suricata would not
4 years ago
Philippe Antoine
ca054f7264
fuzz: fixes a leak in applayerparse target
...
If a protocol change was requested, the target did not handle
it as Suricata, as the target is meant to handle only one
app-layer protocol.
4 years ago
Philippe Antoine
e9b76a0e66
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
5 years ago
Philippe Antoine
18fcbb20e2
fuzz: fix typo in comment
5 years ago
Philippe Antoine
c93cbe66c2
fuzz: applayer target uses yaml config
...
so that every app-layer protocol is enabled
5 years ago
Victor Julien
4f73943df9
app-layer: split EOF flag per direction
5 years ago
Philippe Antoine
00509da286
fuzz: improves fuzz target applayerparserparse
...
Does not proceed final chunk if we got an error previously
Flips the direction for last chunk as usual
5 years ago
Philippe Antoine
2fe82ce0d6
fuzz: do not reuse global variable named suricata
6 years ago
Victor Julien
967340e901
fuzz: fix applayer eof check segv
6 years ago
Philippe Antoine
4fda7ed4bd
fuzz: stop app layer target as Suricata
...
Before being overwhelmed by successive errors
6 years ago
Shivani Bhardwaj
c4c734541a
Use appropriate ByteExtractString* functions
6 years ago
Philippe Antoine
ac35118ebe
fuzz: use env variable to restrict app layer
6 years ago
Philippe Antoine
600b0d7c55
fuzz: adds eight fuzz targets
...
And ways to compile them with enable-fuzztargets at configure time
Adds utility function in util-unittest-helper
6 years ago