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
Integer underflow in exif HEIF parsing when pos.size < 2 #20631
When parsing HEIF/HEIC files, if the iloc box contains an extent_length value less than 2, the subtraction pos.size - 2 causes an unsigned integer underflow.
Location
ext/exif/exif.c line 4424 in exif_scan_HEIF_header()
Reproducer
# patch a valid HEIC file to set extent_length = 1
php -d memory_limit=128M -r "exif_read_data('malicious.heic');"
Activity
Fix GH-20631: Integer underflow in exif HEIF parsing
Merge branch 'PHP-8.5'