-
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
Unexpected value in ext/gd/libgd/gd_interpolation.c:2443 #16322
Comments
There has been a recent change to gd_interpolation.c, so I think this now about: php-src/ext/gd/libgd/gd_interpolation.c Line 2461 in f2fbb75
An option might be to clamp the value to fit into int, but the result should be checked. Maybe we just need to reject very large (and very small) values for the affine matrix components. Upstream libgd might have the same issue: Likely not relevant to this issue, but still something we may want to backport is libgd/libgd@b30fdbf; however, there was a follow up (libgd/libgd@3f50ffa) which changed that again. |
* PHP-8.2: Revert "Fix GH-16322: overflow on imageaffine matrix argument."
* PHP-8.3: Revert "Fix GH-16322: overflow on imageaffine matrix argument."
* PHP-8.4: Revert "Fix GH-16322: overflow on imageaffine matrix argument."
This ticket has been closed accidentially. |
Description
The following code:
Resulted in this output:
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04
The text was updated successfully, but these errors were encountered: