You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
getimagesize(): negative TIFF dimensions are narrowed into huge unsigned sizes #25962
The signed TIFF values are assigned to size_t and then narrowed into unsigned result fields in ext/standard/image.c:823-850, while the guard at line 846 checks only that the dimensions are nonzero. Negative dimensions must be rejected rather than sign-extended and published as 4294967295 and 4294967294.
Activity
lazerg commentedon Dec 1, 2026
There's already an open PR that touches this: #24197. It rejects negative 16-bit TIFF dimensions in php_handle_tiff().