[php-src] PR #12444: Fix bug #75708: getimagesize with "&$imageinfo" fails on StreamWrappers
| From: | bukka | Date: | Sun, 15 Oct 2023 16:10:00 +0000 |
| Subject: | [php-src] PR #12444: Fix bug #75708: getimagesize with "&$imageinfo" fails on StreamWrappers | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23893@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12444
Author: bukka
When image with large (over stream chunk size) APP data (e.g. large metadata comment) is loaded,
then not all data will be read in a single read for user stream wrapper which does not use greedy
reading like for example file wrapper.
This PR makes sure that that if the whole chunk is read, then another chunk is attempted to be read
until less than one chunk or whole stream is read.