Skip to content

Fix GH-19739: imageellipse/imagefilledellipse overflow.#22116

Open
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:gh19739-84
Open

Fix GH-19739: imageellipse/imagefilledellipse overflow.#22116
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:gh19739-84

Conversation

@devnexen
Copy link
Copy Markdown
Member

Port the upstream libgd portable fix (overflowMul3) for the int64 overflow at r = a * bq when w/h reach near INT_MAX. Mirrors the upstream libgd commit 0057de6.

Port the upstream libgd portable fix (overflowMul3) for the int64
overflow at r = a * bq when w/h reach near INT_MAX. Mirrors the
upstream libgd commit 0057de6.
@devnexen devnexen marked this pull request as ready for review May 22, 2026 05:55
@devnexen devnexen requested a review from Girgias May 24, 2026 04:30
Copy link
Copy Markdown
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Looks sensible, didn't check that it matches upstream as I trust you to do this correctly.

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