Skip to content

Conversation

@devnexen
Copy link
Member

No description provided.

@devnexen devnexen linked an issue Nov 28, 2025 that may be closed by this pull request
@devnexen devnexen marked this pull request as ready for review November 28, 2025 20:25
src_y = gdImageSY(im);

if (src_x && tmp_h < 0) {
if (tmp_w > (ZEND_LONG_MAX / src_y)) {
Copy link
Member

Choose a reason for hiding this comment

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

You could allow a bit higher (multiple of src_x) value if it was changed to tmp_w * (src_y / src_x) but not sure if it's worth it...

@devnexen devnexen closed this in c8e13af Nov 29, 2025
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 imagescale

2 participants