[PATCH] [libFuzzer] Allow non-fuzzer args after "--"

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 12 14:41:02 PDT 2017


With this change, libFuzzer will ignore any arguments after an empty
double dash argument, but it will preserve these arguments at the end
of the command line when launching subprocesses. Using this, its
possible to handle positional and single-dash arguments to the program
under test by discarding everything up to "--" in LLVMFuzzerInitialize.

The motivation here is in trying to set up fuzzers that use the LLVM
backend, for example so that we can pass "-global-isel" in an ISel
fuzzer to test that instead of SelectionDAG.

Ok to commit?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fuzzer-dash-dash.patch
Type: text/x-patch
Size: 7057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170712/dcd3bb69/attachment.bin>


More information about the llvm-commits mailing list