Skip to content

Commit b61dce3

Browse files
committed
Add one more for JPEG
1 parent 363ca38 commit b61dce3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/shared/avifjpeg.c

+2
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,7 @@ static avifBool avifJPEGReadInternal(FILE * f,
948948

949949
int row_stride = cinfo.output_width * cinfo.output_components;
950950
JSAMPARRAY buffer = (*cinfo.mem->alloc_sarray)((j_common_ptr)&cinfo, JPOOL_IMAGE, row_stride, 1);
951+
AVIF_ANNOTATE_MEMORY_IS_INITIALIZED(buffer, row_stride);
951952

952953
avif->width = cinfo.output_width;
953954
avif->height = cinfo.output_height;
@@ -994,6 +995,7 @@ static avifBool avifJPEGReadInternal(FILE * f,
994995
goto cleanup;
995996
}
996997
uint8_t * pixelRow = &rgb.pixels[row * rgb.rowBytes];
998+
AVIF_ANNOTATE_MEMORY_IS_INITIALIZED(buffer, sizeof(buffer[0]));
997999
AVIF_ANNOTATE_MEMORY_IS_INITIALIZED(buffer[0], rgb.rowBytes);
9981000
memcpy(pixelRow, buffer[0], rgb.rowBytes);
9991001
++row;

0 commit comments

Comments
 (0)