From 0bcc007d296f9765de25cccb30a0222cfd453ded Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Wed, 7 Feb 2024 12:05:09 -0800 Subject: [PATCH] Pass avifStrictFlags type to BitFlagCombinationOf If the type parameter is omitted, the fuzztest::BitFlagCombinationOf template infers the avifStrictFlag enum type from AVIF_STRICT_PIXI_REQUIRED, AVIF_STRICT_CLAP_VALID, and AVIF_STRICT_ALPHA_ISPE_REQUIRED. The type of the combination of these bit flags should be avifStrictFlags (note the 's' at the end). BUG=oss-fuzz:66414 --- tests/gtest/avif_fuzztest_helpers.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/gtest/avif_fuzztest_helpers.h b/tests/gtest/avif_fuzztest_helpers.h index 0e0628473b..a6d21ea782 100644 --- a/tests/gtest/avif_fuzztest_helpers.h +++ b/tests/gtest/avif_fuzztest_helpers.h @@ -153,9 +153,9 @@ inline auto ArbitraryBaseAvifDecoder() { /*image_dimension_limit=*/fuzztest::Just(kMaxDimension), /*image_count_limit=*/fuzztest::Just(10), /*strict_flags=*/ - fuzztest::BitFlagCombinationOf({AVIF_STRICT_PIXI_REQUIRED, - AVIF_STRICT_CLAP_VALID, - AVIF_STRICT_ALPHA_ISPE_REQUIRED})); + fuzztest::BitFlagCombinationOf( + {AVIF_STRICT_PIXI_REQUIRED, AVIF_STRICT_CLAP_VALID, + AVIF_STRICT_ALPHA_ISPE_REQUIRED})); } #if defined(AVIF_ENABLE_EXPERIMENTAL_GAIN_MAP)