Skip to content

Conversation

@devnexen
Copy link
Member

No description provided.

@ndossche
Copy link
Member

I think it would be better to solve this with unsigned math (e.g. zend_ulong). If it still overflows, well, then just let it wrap, it's not worth adding these checks inside loops.

@devnexen devnexen marked this pull request as ready for review November 30, 2025 08:33
@devnexen devnexen requested a review from ndossche December 4, 2025 05:37
@Girgias Girgias linked an issue Dec 4, 2025 that may be closed by this pull request
@@ -0,0 +1,13 @@
--TEST--
GH-20622: (imagestring/imagestringup overflow/underflow)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
GH-20622: (imagestring/imagestringup overflow/underflow)
GH-20622 (imagestring/imagestringup overflow/underflow)

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.

integer overflow in ImageString

2 participants