We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code:
<?php $input = imagecreatefrompng(__DIR__ . '/gh10614.png'); for ($angle = 0; $angle <= 270; $angle += 90) { $output = imagerotate($input, $angle, 0); } $fusion = $output; $thumbnail = imagescale($fusion, -1, 64, IMG_BICUBIC);
Resulted in this output:
/php-src/ext/gd/libgd/gd_interpolation.c:1007:28: runtime error: left shift of 134 by 24 places cannot be represented in type 'int'
nightly
ubuntu 22.04
The text was updated successfully, but these errors were encountered:
Right, alpha must be 0x7f at most; uchar_clamp in upstream takes an extra argument but we don't...
uchar_clamp
Sorry, something went wrong.
Fix phpGH-16559: UBSan abort in ext/gd/libgd/gd_interpolation.c:1007
9e8ea5b
The `uchar_clamp` function was backported from old code, this backports it from new code.
Merge branch 'PHP-8.2' into PHP-8.3
6d6afd9
* PHP-8.2: Fix GH-16559: UBSan abort in ext/gd/libgd/gd_interpolation.c:1007
Merge branch 'PHP-8.3' into PHP-8.4
d7e7e2b
* PHP-8.3: Fix GH-16559: UBSan abort in ext/gd/libgd/gd_interpolation.c:1007
e1e1e64
Merge branch 'PHP-8.4'
551a9ef
* PHP-8.4: Fix GH-16559: UBSan abort in ext/gd/libgd/gd_interpolation.c:1007
nielsdos
Successfully merging a pull request may close this issue.
Description
The following code:
Resulted in this output:
PHP Version
nightly
Operating System
ubuntu 22.04
The text was updated successfully, but these errors were encountered: