You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -3662,9 +3662,9 @@ static int exif_process_IFD_in_TIFF(image_info_type *ImageInfo, size_t dir_offse
3662
3662
}
3663
3663
}
3664
3664
}
3665
-
if (ImageInfo->FileSize >= dir_offset+ImageInfo->file.list[sn].size) {
3665
+
if (ImageInfo->FileSize >= ImageInfo->file.list[sn].size&&ImageInfo->FileSize-ImageInfo->file.list[sn].size >= dir_offset) {
3666
3666
if (ifd_size>dir_size) {
3667
-
if (dir_offset+ifd_size>ImageInfo->FileSize) {
3667
+
if (ImageInfo->FileSize<ifd_size||dir_offset>ImageInfo->FileSize-ifd_size) {
3668
3668
exif_error_docref(NULLEXIFERR_CC, ImageInfo, E_WARNING, "Error in TIFF: filesize(x%04X) less than size of IFD(x%04X + x%04X)", ImageInfo->FileSize, dir_offset, ifd_size);
0 commit comments