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
4398
4398
int box_header_size , remain ;
4399
4399
bool ret = false;
4400
4400
4401
- pos .size = 0 ;
4402
4401
for (offset = php_ifd_get32u (buf , 1 ); ImageInfo -> FileSize - 16 > offset ; offset += box .size ) {
4403
4402
if ((php_stream_seek (ImageInfo -> infile , offset , SEEK_SET ) < 0 ) ||
4404
4403
(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
4418
4417
if (remain ) {
4419
4418
memcpy (data , buf + box_header_size , remain );
4420
4419
}
4420
+ memset (& pos , 0 , sizeof (pos ));
4421
4421
if (exif_read_from_stream_file_looped (ImageInfo -> infile , (char * )(data + remain ), limit - remain ) == limit - remain ) {
4422
4422
exif_isobmff_parse_meta (data , data + limit , & pos );
4423
4423
}
You can’t perform that action at this time.
0 commit comments