diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-09 14:57:24 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-09 14:57:24 +0200 |
commit | d6ca174d5b82b92a5f28e81e85f45c2892949cf7 (patch) | |
tree | fe676d1180065745f2ce521545a5c140bb4612c0 | |
parent | a8f60ac9dd3ba8fed24370799603b92487fdf362 (diff) | |
download | php-git-d6ca174d5b82b92a5f28e81e85f45c2892949cf7.tar.gz |
Remove redundant components < 0 check
components is an unsigned number, it cannot be smaller than zero.
-rw-r--r-- | ext/exif/exif.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 9b4adffb43..b47e55fba1 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -3294,11 +3294,6 @@ static int exif_process_IFD_TAG(image_info_type *ImageInfo, char *dir_entry, cha /*return TRUE;*/ } - if (components < 0) { - exif_error_docref("exif_read_data#error_ifd" EXIFERR_CC, ImageInfo, E_WARNING, "Process tag(x%04X=%s): Illegal components(%d)", tag, exif_get_tagname(tag, tagname, -12, tag_table), components); - return FALSE; - } - byte_count_signed = (int64_t)components * php_tiff_bytes_per_format[format]; if (byte_count_signed < 0 || (byte_count_signed > INT32_MAX)) { |