diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-07-11 10:12:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 10:12:08 +0200 |
commit | 950f5cc4e3ddd9bc0f8881950082283aa381c805 (patch) | |
tree | 4686d9c1b1d0348d06db9d6aa8ed166f449e3238 /fuzz/fuzz_ds_ahocorasick.cpp | |
parent | 859d9ea3c33c3ed54c159658a94381fdd4e7eccb (diff) |
fuzz: extend fuzzing coverage (#2040)
Some notes:
* libinjection: according to https://github.com/libinjection/libinjection/issues/44,
it seems NULL characters are valid in the input string;
* RTP: `rtp_get_stream_type()` is called only for RTP packets; if you
want to tell RTP from RTCP you should use `is_rtp_or_rtcp()`;
* TLS: unnecessary check; we already make the same check just above, at
the beginning of the `while` loop
Diffstat (limited to 'fuzz/fuzz_ds_ahocorasick.cpp')
-rw-r--r-- | fuzz/fuzz_ds_ahocorasick.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzz/fuzz_ds_ahocorasick.cpp b/fuzz/fuzz_ds_ahocorasick.cpp index e02744e52..f7aebd7be 100644 --- a/fuzz/fuzz_ds_ahocorasick.cpp +++ b/fuzz/fuzz_ds_ahocorasick.cpp @@ -41,6 +41,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { else mc = NULL; + ac_automata_enable_debug(0); + a = ac_automata_init(mc); a2 = ndpi_init_automa(); |