From 95fe21015d295632c45c40cabffebd7509eab7b6 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Mon, 6 May 2024 12:51:45 +0200 Subject: 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. --- fuzz/fuzz_config.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'fuzz/fuzz_config.cpp') 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 @@ -336,21 +336,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { snprintf(cfg_value, sizeof(cfg_value), "%d", value); ndpi_set_config(ndpi_info_mod, NULL, "lru.bittorrent.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.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); -- cgit v1.2.3