[PATCH] D28718: [libFuzzer] Avoid undefined behavior. Properly discard output to stdout and stderr.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 20:06:04 PST 2017
vitalybuka added inline comments.
================
Comment at: lib/Fuzzer/FuzzerIOPosix.cpp:80
+ FILE* Temp = fopen("/dev/null", "w");
+ if (!Temp)
+ return;
----------------
Why not just use CloseFile on Posix if it works?
Repository:
rL LLVM
https://reviews.llvm.org/D28718
More information about the llvm-commits
mailing list