fuzz: improve fuzzing coverage (#2474)

Remove some code never triggered

AFP: the removed check is included in the following one
MQTT: fix flags extraction
This commit is contained in:
Ivan Nardi
2024-06-17 13:45:47 +02:00
committed by GitHub
parent a35fae6b75
commit 26cc1f131f
19 changed files with 97 additions and 66 deletions
+4 -1
View File
@@ -44,7 +44,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
ac_automata_enable_debug(0);
a = ac_automata_init(mc);
a2 = ndpi_init_automa();
if (fuzzed_data.ConsumeBool())
a2 = ndpi_init_automa();
else
a2 = ndpi_init_automa_domain();
if (fuzzed_data.ConsumeBool())
ac_automata_feature(a, AC_FEATURE_DEBUG);