[php-src] PR #23807: ext/exif: add a cast in `exif_process_IFD_in_TIFF_impl()` to avoid overflow
| From: | DanielEScherzer | Date: | Sun, 20 Sep 2026 22:34:05 +0000 |
| Subject: | [php-src] PR #23807: ext/exif: add a cast in `exif_process_IFD_in_TIFF_impl()` to avoid overflow | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38646@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23807
Author: DanielEScherzer
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.