Skip to content

Commit

Permalink
mdns/fuzzer: Fix non-instrumentation test to reproduce fuzzer issues
Browse files Browse the repository at this point in the history
Regression from 2893d7e21b skipped reading the packet causing issues when locally reproducing crashed found by the fuzzer


* Original commit: espressif/esp-idf@dae8033
  • Loading branch information
david-cermak authored and suren-gabrielyan-espressif committed May 27, 2022
1 parent 8a12082 commit 5f6b6f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/mdns/test_afl_fuzz_host/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5f6b6f9

Please sign in to comment.