mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 07:32:36 +00:00
[libFuzzer] add -fsanitize-coverage-pc-table to -fsanitize=fuzzer
llvm-svn: 310136
This commit is contained in:
parent
d90ec748a8
commit
7dbb1e179e
@ -288,7 +288,8 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
|
||||
|
||||
// Enable coverage if the fuzzing flag is set.
|
||||
if (Add & Fuzzer)
|
||||
CoverageFeatures |= CoverageTracePCGuard | CoverageIndirCall | CoverageTraceCmp;
|
||||
CoverageFeatures |= CoverageTracePCGuard | CoverageIndirCall |
|
||||
CoverageTraceCmp | CoveragePCTable;
|
||||
|
||||
Kinds |= Add;
|
||||
} else if (Arg->getOption().matches(options::OPT_fno_sanitize_EQ)) {
|
||||
|
@ -6,6 +6,7 @@
|
||||
// CHECK-COVERAGE: -fsanitize-coverage-trace-pc-guard
|
||||
// CHECK-COVERAGE-SAME: -fsanitize-coverage-indirect-calls
|
||||
// CHECK-COVERAGE-SAME: -fsanitize-coverage-trace-cmp
|
||||
// CHECK-COVERAGE-SAME: -fsanitize-coverage-pc-table
|
||||
|
||||
// RUN: %clang -fsanitize=fuzzer -target i386-unknown-linux -stdlib=platform %s -### 2>&1 | FileCheck --check-prefixes=CHECK-LIBCXX-LINUX %s
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user