[PATCH] D28718: [libFuzzer] Avoid undefined behavior. Properly discard output to stdout and stderr.

Marcos Pividori via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 13 20:10:19 PST 2017


mpividori added a comment.

Hi, it is undefined behavior. It could fail.
Also, if we close `stdout` and we open a new file in `libFuzzer`, we get the file descriptor 1, which could generate problem if some code assumes file descriptors refers to stdout and works directly writing to the file descriptor 1, but it will be writing to the opened file.


Repository:
  rL LLVM

https://reviews.llvm.org/D28718





More information about the llvm-commits mailing list