From 7d762451731cb305c3b090509827740f0195a496 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Wed, 9 Jun 2021 09:58:58 +0200 Subject: [PATCH] mdns: Minor correction of the test code --- components/mdns/test_afl_fuzz_host/test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/mdns/test_afl_fuzz_host/test.c b/components/mdns/test_afl_fuzz_host/test.c index 0c123f6fae..776a089cd9 100644 --- a/components/mdns/test_afl_fuzz_host/test.c +++ b/components/mdns/test_afl_fuzz_host/test.c @@ -204,9 +204,7 @@ int main(int argc, char** argv) // // Note: parameter1 is a file (mangled packet) which caused the crash file = fopen(argv[1], "r"); - if (file) { - len = fread(buf, 1, 1460, file); - } + assert(file >= 0 ); fclose(file); }