diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-05-06 12:51:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 12:51:45 +0200 |
commit | 95fe21015d295632c45c40cabffebd7509eab7b6 (patch) | |
tree | 4cf91b43067ca905a8e29ee2f9ae01eebc0cf155 /fuzz/fuzz_config.cpp | |
parent | b7d77972bceb250e888139319d64d125112ee502 (diff) |
Remove "zoom" cache (#2420)
This cache was added in b6b4967aa, when there was no real Zoom support.
With 63f349319, a proper identification of multimedia stream has been
added, making this cache quite useless: any improvements on Zoom
classification should be properly done in Zoom dissector.
Tested for some months with a few 10Gbits links of residential traffic: the
cache pretty much never returned a valid hit.
Diffstat (limited to 'fuzz/fuzz_config.cpp')
-rw-r--r-- | fuzz/fuzz_config.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/fuzz/fuzz_config.cpp b/fuzz/fuzz_config.cpp index a592e87a0..a5e4f4d25 100644 --- a/fuzz/fuzz_config.cpp +++ b/fuzz/fuzz_config.cpp @@ -339,21 +339,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { if(fuzzed_data.ConsumeBool()) { value = fuzzed_data.ConsumeIntegralInRange(0, 16777215 / 2); /* max / 2 instead of max + 1 to avoid oom on oss-fuzzer */ snprintf(cfg_value, sizeof(cfg_value), "%d", value); - ndpi_set_config(ndpi_info_mod, NULL, "lru.zoom.size", cfg_value); - } - if(fuzzed_data.ConsumeBool()) { - value = fuzzed_data.ConsumeIntegralInRange(0, 16777215 + 1); - snprintf(cfg_value, sizeof(cfg_value), "%d", value); - ndpi_set_config(ndpi_info_mod, NULL, "lru.zoom.ttl", cfg_value); - } - if(fuzzed_data.ConsumeBool()) { - value = fuzzed_data.ConsumeIntegralInRange(0, 1 + 1); - snprintf(cfg_value, sizeof(cfg_value), "%d", value); - ndpi_set_config(ndpi_info_mod, NULL, "lru.zoom.scope", cfg_value); - } - if(fuzzed_data.ConsumeBool()) { - value = fuzzed_data.ConsumeIntegralInRange(0, 16777215 / 2); /* max / 2 instead of max + 1 to avoid oom on oss-fuzzer */ - snprintf(cfg_value, sizeof(cfg_value), "%d", value); ndpi_set_config(ndpi_info_mod, NULL, "lru.stun.size", cfg_value); } if(fuzzed_data.ConsumeBool()) { |