Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug #75708: getimagesize with "&$imageinfo" fails on StreamWrappers #12444

Closed
wants to merge 1 commit into from

Conversation

bukka
Copy link
Member

@bukka bukka commented Oct 15, 2023

When jpeg 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.

@bukka bukka changed the base branch from master to PHP-8.1 October 15, 2023 15:56
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bukka bukka closed this in 52aa0d9 Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants