From 0961238f397b404a867dabd13ada68b09510f6de Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Mon, 3 Feb 2025 11:51:33 -0800 Subject: [PATCH] Do not throttle crash reporting when running with FuzzTest. PiperOrigin-RevId: 722741758 --- centipede/environment.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/centipede/environment.cc b/centipede/environment.cc index 3b2a7f38..1f3ff378 100644 --- a/centipede/environment.cc +++ b/centipede/environment.cc @@ -20,6 +20,7 @@ #include #include #include +#include #include #include // NOLINT #include @@ -238,6 +239,10 @@ void Environment::ReadKnobsFileIfSpecified() { void Environment::UpdateWithTargetConfig( const fuzztest::internal::Configuration &config) { + // Always report crashes when running with FuzzTest. Crash deduplication will + // be performed after reporting. + max_num_crash_reports = + std::numeric_limits::max(); if (config.jobs != 0) { CHECK(j == Default().j || j == config.jobs) << "Value for --j is inconsistent with the value for jobs in the "