Flush stdout before successful return from LLVMFuzzerTestOneInput().

Fixes a problem with diag lines from libFuzzer being interspersed
with test output.
This commit is contained in:
Todd C. Miller
2021-03-18 13:08:30 -06:00
parent d03805c413
commit 95bfd65fec
8 changed files with 12 additions and 0 deletions

View File

@@ -57,5 +57,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
unlink(tempfile);
fflush(stdout);
return 0;
}