Skip to content

Commit

Permalink
Allow disabling the legacy coverage using FUZZTEST_NO_LEGACY_COVERAGE.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 704892418
  • Loading branch information
xinhaoyuan authored and copybara-github committed Dec 11, 2024
1 parent 8f291b9 commit 4c740a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fuzztest/internal/coverage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ bool CorpusCoverage::Update(ExecutionCoverage* execution_coverage) {

} // namespace fuzztest::internal

#if !defined(FUZZTEST_COMPATIBILITY_MODE) && !defined(FUZZTEST_USE_CENTIPEDE)
#if !defined(FUZZTEST_COMPATIBILITY_MODE) && \
!defined(FUZZTEST_USE_CENTIPEDE) && !defined(FUZZTEST_NO_LEGACY_COVERAGE)
// Sanitizer Coverage hooks.

// The instrumentation runtime calls back the following function at startup,
Expand Down Expand Up @@ -511,4 +512,5 @@ void __sanitizer_weak_hook_strncasecmp(void *caller_pc, const char *s1,
}

#endif // !defined(FUZZTEST_COMPATIBILITY_MODE) &&
// !defined(FUZZTEST_USE_CENTIPEDE)
// !defined(FUZZTEST_USE_CENTIPEDE) &&
// !defined(FUZZTEST_NO_LEGACY_COVERAGE)

0 comments on commit 4c740a0

Please sign in to comment.