mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
MFB: Fixed bug #44388 (Crash inside exif_read_data() on invalid images)
This commit is contained in:
parent
45524adf9b
commit
6ccc87cb26
@ -2856,7 +2856,7 @@ static int exif_process_IFD_TAG(image_info_type *ImageInfo, char *dir_entry, cha
|
||||
/* exception are IFD pointers */
|
||||
exif_error_docref("exif_read_data#error_ifd" EXIFERR_CC, ImageInfo, E_WARNING, "Process tag(x%04X=%s): Illegal pointer offset(x%04X + x%04X = x%04X > x%04X)", tag, exif_get_tagname(tag, tagname, -12, tag_table TSRMLS_CC), offset_val, byte_count, offset_val+byte_count, IFDlength);
|
||||
}
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
if (byte_count>sizeof(cbuf)) {
|
||||
/* mark as outside range and get buffer */
|
||||
|
Loading…
Reference in New Issue
Block a user