File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4389,7 +4389,7 @@ static bool exif_scan_HEIF_header(image_info_type *ImageInfo, unsigned char *buf
4389
4389
if (remain ) {
4390
4390
memcpy (data , buf + box_header_size , remain );
4391
4391
}
4392
- if (exif_read_from_stream_file_looped (ImageInfo -> infile , data + remain , limit - remain ) == limit - remain ) {
4392
+ if (exif_read_from_stream_file_looped (ImageInfo -> infile , ( char * )( data + remain ) , limit - remain ) == limit - remain ) {
4393
4393
exif_isobmff_parse_meta (data , data + limit , & pos );
4394
4394
}
4395
4395
efree (data );
@@ -4398,8 +4398,8 @@ static bool exif_scan_HEIF_header(image_info_type *ImageInfo, unsigned char *buf
4398
4398
(php_stream_seek (ImageInfo -> infile , pos .offset + 2 , SEEK_SET ) >= 0 )) {
4399
4399
limit = pos .size - 2 ;
4400
4400
data = (unsigned char * )safe_emalloc (1 , limit , 0 );
4401
- if (exif_read_from_stream_file_looped (ImageInfo -> infile , data , limit ) == limit ) {
4402
- exif_process_APP1 (ImageInfo , data , limit , pos .offset + 2 );
4401
+ if (exif_read_from_stream_file_looped (ImageInfo -> infile , ( char * ) data , limit ) == limit ) {
4402
+ exif_process_APP1 (ImageInfo , ( char * ) data , limit , pos .offset + 2 );
4403
4403
ret = true;
4404
4404
}
4405
4405
efree (data );
You can’t perform that action at this time.
0 commit comments