Skip to content

Fix bug 68629: Transparent artifacts when using imagerotate - #17375

Closed
cmb69 wants to merge 3 commits into
php:masterfrom
cmb69:cmb/bug68629
Closed

cmb69 wants to merge 3 commits into
php:masterfrom
cmb69:cmb/bug68629

Conversation

@cmb69

@cmb69 cmb69 commented Jan 6, 2025

Copy link
Copy Markdown
Member

We port the respective upstream fix[1], which dropped the special cased implementations of fixed-point arithmetic rotation in favor of the generic implementation.

[1] libgd/libgd@bd6d2e1


It's a bit unfortunate that due to the change to the gdInterpolationMethod enum this likely has to be regarded as ABI break, and as such can only target the master branch. It's even more unfortunate, that I thought that the special case implementations had not been ported to libgd back then, when actually they just had been removed just a few months before.

@devnexen

devnexen commented Jan 6, 2025

Copy link
Copy Markdown
Member

seems needs an upstream fix ?

@cmb69
cmb69 marked this pull request as draft January 6, 2025 10:53
@cmb69

cmb69 commented Jan 6, 2025

Copy link
Copy Markdown
Member Author

seems needs an upstream fix ?

The unintended fallthrough has already been fixed: libgd/libgd@6d21d30

The UB likely has been fixed with libgd/libgd@2b26be8.

What a mess! Need to check more thoroughly.

cmb69 added 2 commits January 6, 2025 22:44
We port the respective upstream fix[1], which dropped the special cased
implementations of fixed-point arithmetic rotation in favor of the
generic implementation.

[1] <libgd/libgd@bd6d2e1>
@cmb69
cmb69 marked this pull request as ready for review January 6, 2025 22:45

@devnexen devnexen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@cmb69 cmb69 closed this in 0f40e62 Jan 9, 2025
@cmb69
cmb69 deleted the cmb/bug68629 branch January 9, 2025 12:20
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.

2 participants