[llvm-dev] LibFuzzer syntax sugar flag

Kostya Serebryany via llvm-dev llvm-dev at lists.llvm.org
Thu Apr 27 16:08:37 PDT 2017


on the one hand, -fsanitize=fuzzer might indeed be confusing as it behaves
in somewhat different way compared to other sanitizers
Major difference: links in a library with main()
On the other hand, I like "-fsanitize=fuzzer,address" more than
"-fsanitize=address
-ffuzzer"

--kcc

On Tue, Apr 25, 2017 at 5:02 PM, George Karpenkov <ekarpenkov at apple.com>
wrote:

> Hi All,
>
> Recently we have introduced a short syntactic sugar flag for compiling a
> file with libfuzzer:
> one just needs to add “-fsanitize=fuzzer” to the command line, and the
> driver would specify
> coverage flags and link with libfuzzer automatically.
> I wanted to ask whether it would make more sense to rename the flag to
> “-ffuzzer”,
> as it’s not a sanitizer, and it has a much heavier effect.
>
> Thanks,
> George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170427/7702ffa2/attachment.html>


More information about the llvm-dev mailing list