invalid value 'edge' in 'fsantize-coverage=edge' when using LLVM LibFuzzer

前端 未结 1 1657
时光取名叫无心
时光取名叫无心 2021-01-21 13:16

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++ -fsani         


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-21 13:45

    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
    

    So you might try -fsanitize-coverage=3.

    0 讨论(0)
提交回复
热议问题