aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_alg_memmem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/fuzz_alg_memmem.cpp')
-rw-r--r--fuzz/fuzz_alg_memmem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/fuzz/fuzz_alg_memmem.cpp b/fuzz/fuzz_alg_memmem.cpp
index 7bafb8554..eb1d8b93b 100644
--- a/fuzz/fuzz_alg_memmem.cpp
+++ b/fuzz/fuzz_alg_memmem.cpp
@@ -34,5 +34,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
else
ndpi_strlcpy(NULL, (const char *)h, 0, h_len);
+ /* Let use this fuzzer to check also this simple function... */
+ ndpi_memcasecmp(fuzzed_data.ConsumeBool() ? h : NULL,
+ fuzzed_data.ConsumeBool() ? h : NULL,
+ fuzzed_data.ConsumeBool() ? h_len : 0);
+
return 0;
}