Skip to content

Commit d734e00

Browse files
committed
ignore "--" argument in fuzzer
Just ignore -- like other unknown arguments. This fixes an issues when running the fuzzer after a change in OSS Fuzz b047915cd976d7057cd74a6e9cee5b6836e17d99 #780
1 parent 091b489 commit d734e00

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fuzzer/fuzzer.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -705,10 +705,6 @@ int LLVMFuzzerInitialize(int *argc, char ***argv)
705705
g_no_mmap = true;
706706
}
707707
#endif
708-
else if (strncmp("--", _argv[i], 2) == 0) {
709-
printf("Invalid argument: %s\n", _argv[i]);
710-
exit(0);
711-
}
712708
}
713709

714710
if (no_custom_event_handler == false) {

0 commit comments

Comments
 (0)