@@ -3750,7 +3750,7 @@ static void exif_process_TIFF_in_JPEG(image_info_type *ImageInfo, char *CharBuf,
37503750static void exif_process_APP1 (image_info_type * ImageInfo , char * CharBuf , size_t length , size_t displacement )
37513751{
37523752 /* Check the APP1 for Exif Identifier Code */
3753- static const uchar ExifHeader [] = {0x45 , 0x78 , 0x69 , 0x66 , 0x00 , 0x00 };
3753+ static const uchar ExifHeader [] = {'E' , 'x' , 'i' , 'f' , 0 , 0 };
37543754 if (length <= 8 || memcmp (CharBuf + 2 , ExifHeader , 6 )) {
37553755 exif_error_docref (NULL EXIFERR_CC , ImageInfo , E_WARNING , "Incorrect APP1 Exif Identifier Code ");
37563756 return ;
@@ -4447,8 +4447,7 @@ static bool exif_scan_HEIF_header(image_info_type *ImageInfo, unsigned char *buf
44474447
44484448static bool exif_scan_WEBP_header (image_info_type * ImageInfo , size_t riff_size )
44494449{
4450- /* "Exif\0\0" identifier code */
4451- static const uchar ExifHeader [] = {0x45 , 0x78 , 0x69 , 0x66 , 0x00 , 0x00 };
4450+ static const uchar ExifHeader [] = {'E' , 'x' , 'i' , 'f' , 0 , 0 };
44524451 unsigned char chunk_header [8 ];
44534452 size_t offset = 12 ;
44544453 size_t riff_end = riff_size <= ImageInfo -> FileSize - 8 ? riff_size + 8 : ImageInfo -> FileSize ;
0 commit comments