[PATCH] D73329: [libFuzzer] communicate through pipe to subprocess for CleanseCrashInput MinimizeCrashInput

Yuanfang Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 23:29:19 PST 2020


ychen created this revision.
ychen added reviewers: kcc, rnk.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

Also giving TempPath a prefix representing the work it is doing.

Both change is to defend against aggresive PID recycle on windows so as
to reduce the chance of contention on files for windows.

Using pipe instead of file also workaround the problem that when the
process is spawned by llvm-lit, aborted process keeps a handle to the
output file such that the output file can not be removed. This will
cause random test failures.

https://devblogs.microsoft.com/oldnewthing/20110107-00/?p=11803


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73329

Files:
  compiler-rt/lib/fuzzer/FuzzerDriver.cpp
  compiler-rt/lib/fuzzer/FuzzerFork.cpp
  compiler-rt/lib/fuzzer/FuzzerIO.cpp
  compiler-rt/lib/fuzzer/FuzzerIO.h
  compiler-rt/lib/fuzzer/FuzzerLoop.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73329.240103.patch
Type: text/x-patch
Size: 7185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200124/47a9ec91/attachment.bin>


More information about the llvm-commits mailing list