diff --git a/apps/shared/avifjpeg.c b/apps/shared/avifjpeg.c index 024c911a32..262d297e41 100644 --- a/apps/shared/avifjpeg.c +++ b/apps/shared/avifjpeg.c @@ -948,6 +948,7 @@ static avifBool avifJPEGReadInternal(FILE * f, int row_stride = cinfo.output_width * cinfo.output_components; JSAMPARRAY buffer = (*cinfo.mem->alloc_sarray)((j_common_ptr)&cinfo, JPOOL_IMAGE, row_stride, 1); + AVIF_ANNOTATE_MEMORY_IS_INITIALIZED(buffer, row_stride); avif->width = cinfo.output_width; avif->height = cinfo.output_height; @@ -994,6 +995,7 @@ static avifBool avifJPEGReadInternal(FILE * f, goto cleanup; } uint8_t * pixelRow = &rgb.pixels[row * rgb.rowBytes]; + AVIF_ANNOTATE_MEMORY_IS_INITIALIZED(buffer, sizeof(buffer[0])); AVIF_ANNOTATE_MEMORY_IS_INITIALIZED(buffer[0], rgb.rowBytes); memcpy(pixelRow, buffer[0], rgb.rowBytes); ++row;