-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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 #71316: libpng warning from imagecreatefromstring #7615
Conversation
We backport the respective upstream fix[1] to our bundled libgd, and add a regression test, too. [1] <libgd/libgd@636100b>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay, though it would be nice to have a more targeted test image.
I tried to come up with a smaller test image long ago, but failed, and that was basically the reason why I didn't fix that issue in libgd; now they fixed it without any test case. |
Well, we could do the same then :) |
Okay, I applied without the test. |
I've a site with PHP 8.0.14 and I've found an image that raise the same error https://imgur.com/a/XwVKwxr |
@mmarquez, your GD is likely built against system libgd. |
@cmb69 issue is back here on 8.0.14, built against bundled
Downgrading to 8.0.13 fixes it; no warnings. |
Okay so I guess this is from 1919c4b; is the recommended way then really to prefix all load operations with |
And/or should there be a setting similar to The problem is that there is no |
@dzuelke, yes, I think there should be something like |
I've submitted a PR to actually fix the problem in the bundled GD code |
We backport the respective upstream fix[1] to our bundled libgd, and
add a regression test, too.
[1] libgd/libgd@636100b