Skip to content

Conversation

devnexen
Copy link
Member

When parsing the most significant numbers from a string, it can overflow with large inputs with the number of digits in this case we exit from the loop.

When parsing the most significant numbers from a string, it can overflow
with large inputs with the number of digits in this case we exit from
the loop.
@devnexen devnexen linked an issue Sep 20, 2025 that may be closed by this pull request
@devnexen devnexen marked this pull request as ready for review September 20, 2025 21:26
@devnexen devnexen requested a review from bukka as a code owner September 20, 2025 21:26
@@ -0,0 +1,13 @@
--TEST--
GH-18976 (pack overflow with h/H format)
Copy link
Member

Choose a reason for hiding this comment

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

This description seems inaccurate.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes because it s a copy paste :) correcting

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.

undefined behavior in zend_strtod.c
2 participants