使用LLVM LibFuzzer时,'fsantize-coverage = edge'中的无效值'edge' [英] invalid value 'edge' in 'fsantize-coverage=edge' when using LLVM LibFuzzer
问题描述
http://llvm.org/docs/LibFuzzer.html
I '现在做一些工作与libfuzzer,但当我做官方玩具的例子。当我运行这个命令:
http://llvm.org/docs/LibFuzzer.html I'm doing some works with libfuzzer now but when I do with the official toy example. when i run this command:
clang++ -fsanitize=address -fsanitize-coverage=edge test-fuzzer.cc Fuzzer*.o
有错误发生
clang: error: invalid value 'edge' in 'fsanitize-coverage=edge'
似乎clang支持这个参数,但我想知道我可以看到什么值是支持...
i安装llvm 3.6通过apt-get与unbuntu14.04 ...
it seems that clang supports this argument but i'm wondering how i can see what value is supported... i installed llvm 3.6 by apt-get with unbuntu14.04...
推荐答案
fsanitize-coverage =
标志的语法已更改, 此提交消息从2015年5月开始。此位与您特别相关:
The syntax of the fsanitize-coverage=
flag has been changed, as described in this commit message from May 2015. This bit is particularly relevant to you:
Original semantics of -fsanitize-coverage flag is preserved:
* -fsanitize-coverage=0 disables the coverage
* -fsanitize-coverage=1 is a synonym for -fsanitize-coverage=func
* -fsanitize-coverage=2 is a synonym for -fsanitize-coverage=bb
* -fsanitize-coverage=3 is a synonym for -fsanitize-coverage=edge
* -fsanitize-coverage=4 is a synonym for -fsanitize-coverage=edge,indirect-calls
因此,您可以尝试 -fsanitize-coverage = 3
。
这篇关于使用LLVM LibFuzzer时,'fsantize-coverage = edge'中的无效值'edge'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!