mirror of
https://github.com/php/php-src.git
synced 2026-10-29 02:07:35 +08:00
Avoid potential overflow from the multiplication of `php_ifd_get32u(...)` and an entry in `php_tiff_bytes_per_format` by casting the former with `(int64_t)`, matching the cast on line 3288 when similar multiplication is performed. Check the result against `INT32_MAX` before converting it to a `size_t`. Do the same with the entry length when added to the entry offset.