From a1d3a0a4645cdb558e37f4dc3abf132fa1f56de6 Mon Sep 17 00:00:00 2001 From: Gabriel Hege Date: Fri, 5 Jun 2026 11:14:53 +0200 Subject: [PATCH] disable CHECKD for fuzz-testing builds fixes #343 --- source/Lib/CommonLib/TypeDef.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Lib/CommonLib/TypeDef.h b/source/Lib/CommonLib/TypeDef.h index 810b12ae..e67dd226 100644 --- a/source/Lib/CommonLib/TypeDef.h +++ b/source/Lib/CommonLib/TypeDef.h @@ -830,7 +830,9 @@ class UnsupportedFeatureException : public Exception #define CHECK( cond, msg ) { if UNLIKELY( cond ) { THROW_RECOVERABLE( msg << "\nERROR CONDITION: " << #cond ); } } #define CHECK_UNSUPPORTED( cond, msg ) { if UNLIKELY( cond ) { THROW_UNSUPPORTED( msg << "\nERROR CONDITION: " << #cond ); } } -#if defined( _DEBUG ) +#if defined( FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION ) // CHECKD should not abort, when running fuzzing builds, to allow fuzzing to continue +# define CHECKD( cond, msg ) CHECK_WARN( cond, msg ) +#elif defined( _DEBUG ) # define CHECKD( cond, msg ) { if UNLIKELY( cond ) { ABORT ( msg << "\nERROR CONDITION: " << #cond ); } } #else # define CHECKD( cond, msg )