From dae803335e6bc6d9751a360cd3f675ce4027853b Mon Sep 17 00:00:00 2001 From: David Cermak Date: Fri, 25 Jun 2021 08:33:38 +0200 Subject: [PATCH] mdns/fuzzer: Fix non-instrumentation test to reproduce fuzzer issues Regression from 7d76245173 skipped reading the packet causing issues when locally reproducing crashed found by the fuzzer --- components/mdns/test_afl_fuzz_host/test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/mdns/test_afl_fuzz_host/test.c b/components/mdns/test_afl_fuzz_host/test.c index 776a089cd9..58b304e922 100644 --- a/components/mdns/test_afl_fuzz_host/test.c +++ b/components/mdns/test_afl_fuzz_host/test.c @@ -205,6 +205,7 @@ int main(int argc, char** argv) // Note: parameter1 is a file (mangled packet) which caused the crash file = fopen(argv[1], "r"); assert(file >= 0 ); + len = fread(buf, 1, 1460, file); fclose(file); }