diff --git a/tools/fuzz/x86_instruction_emulator/afl-harness.c b/tools/fuzz/x86_instruction_emulator/afl-harness.c index 154869336a..b4d15451b5 100644 --- a/tools/fuzz/x86_instruction_emulator/afl-harness.c +++ b/tools/fuzz/x86_instruction_emulator/afl-harness.c @@ -97,6 +97,8 @@ int main(int argc, char **argv) fclose(fp); fp = NULL; } + else + clearerr(fp); LLVMFuzzerTestOneInput(input, size); }