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 68629: Transparent artifacts when using imagerotate #17375

Closed
wants to merge 3 commits into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jan 6, 2025

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
Copy link
Member

devnexen commented Jan 6, 2025

seems needs an upstream fix ?

@cmb69 cmb69 marked this pull request as draft January 6, 2025 10:53
@cmb69
Copy link
Member Author

cmb69 commented Jan 6, 2025

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
Copy link
Member

@devnexen devnexen left a comment

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