Initialize cicpSet in avifDecoderFindGainMapItem()
avifDecoderFindGainMapItem() should initialize the local variable
cicpSet to AVIF_FALSE, because avifReadColorNclxProperty() leaves its
output parameter cicpSet unchanged if no colr nclx property was read.
Bug: https://issues.oss-fuzz.com/460535483
diff --git a/src/read.c b/src/read.c
index 40914db..8a3ed82 100644
--- a/src/read.c
+++ b/src/read.c
@@ -5775,7 +5775,7 @@
avifTransferCharacteristics transferCharacteristics = AVIF_TRANSFER_CHARACTERISTICS_UNSPECIFIED;
avifMatrixCoefficients matrixCoefficients = AVIF_MATRIX_COEFFICIENTS_UNSPECIFIED;
avifRange yuvRange = AVIF_RANGE_FULL;
- avifBool cicpSet;
+ avifBool cicpSet = AVIF_FALSE;
// Look for a colr nclx box. Other colr box types (e.g. ICC) are not supported.
AVIF_CHECKRES(
avifReadColorNclxProperty(&gainMapItemTmp->properties, &colorPrimaries, &transferCharacteristics, &matrixCoefficients, &yuvRange, &cicpSet));