[php-src] PR #25985: Fix GH-25960: JPEG 2000 Csiz is accepted without component descriptors
| From: | lazerg | Date: | Tue, 01 Dec 2026 01:42:04 +0000 |
| Subject: | [php-src] PR #25985: Fix GH-25960: JPEG 2000 Csiz is accepted without component descriptors | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41300@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25985
Author: lazerg
php_handle_jpc() loops over Csiz component descriptors with unchecked
php_stream_getc() calls, so a codestream cut off before those bytes still returns an
image with Csiz channels. Each 3-byte descriptor is now read in one go and a short read
makes getimagesize() return false.
Fixes #25960