Skip to content

Commit

Permalink
Pass avifStrictFlags type to BitFlagCombinationOf
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wantehchang committed Feb 7, 2024
1 parent 4781419 commit 0bcc007
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/gtest/avif_fuzztest_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<avifStrictFlags>(
{AVIF_STRICT_PIXI_REQUIRED, AVIF_STRICT_CLAP_VALID,
AVIF_STRICT_ALPHA_ISPE_REQUIRED}));
}

#if defined(AVIF_ENABLE_EXPERIMENTAL_GAIN_MAP)
Expand Down

0 comments on commit 0bcc007

Please sign in to comment.