Skip to content

ext/exif: add a cast in exif_process_IFD_in_TIFF_impl() to avoid overflow - #23807

Open
DanielEScherzer wants to merge 1 commit into
php:masterfrom
DanielEScherzer:exif-no-overflow
Open

DanielEScherzer wants to merge 1 commit into
php:masterfrom
DanielEScherzer:exif-no-overflow

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

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.

…erflow

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant