File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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
43894389 if (remain ) {
43904390 memcpy (data , buf + box_header_size , remain );
43914391 }
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 ) {
43934393 exif_isobmff_parse_meta (data , data + limit , & pos );
43944394 }
43954395 efree (data );
@@ -4398,8 +4398,8 @@ static bool exif_scan_HEIF_header(image_info_type *ImageInfo, unsigned char *buf
43984398 (php_stream_seek (ImageInfo -> infile , pos .offset + 2 , SEEK_SET ) >= 0 )) {
43994399 limit = pos .size - 2 ;
44004400 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 );
44034403 ret = true;
44044404 }
44054405 efree (data );
You can’t perform that action at this time.
0 commit comments