mirror of
https://github.com/php/php-src.git
synced 2026-04-18 05:21:02 +02:00
Crafted BMP images can cause dynamicSeek() to be called with a negative position which must not be allowed, since dynamicSeek() works like fseek() in SEEK_SET mode. We solve this by bailing out if `pos` is negative, and let the image reading fail gracefully.
773 B
773 B