File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -4398,7 +4398,6 @@ static bool exif_scan_HEIF_header(image_info_type *ImageInfo, unsigned char *buf
43984398 int box_header_size , remain ;
43994399 bool ret = false;
44004400
4401- pos .size = 0 ;
44024401 for (offset = php_ifd_get32u (buf , 1 ); ImageInfo -> FileSize - 16 > offset ; offset += box .size ) {
44034402 if ((php_stream_seek (ImageInfo -> infile , offset , SEEK_SET ) < 0 ) ||
44044403 (exif_read_from_stream_file_looped (ImageInfo -> infile , (char * )buf , 16 ) != 16 )) {
@@ -4418,6 +4417,7 @@ static bool exif_scan_HEIF_header(image_info_type *ImageInfo, unsigned char *buf
44184417 if (remain ) {
44194418 memcpy (data , buf + box_header_size , remain );
44204419 }
4420+ memset (& pos , 0 , sizeof (pos ));
44214421 if (exif_read_from_stream_file_looped (ImageInfo -> infile , (char * )(data + remain ), limit - remain ) == limit - remain ) {
44224422 exif_isobmff_parse_meta (data , data + limit , & pos );
44234423 }
You can’t perform that action at this time.
0 commit comments