Skip to content

ext/intl: IntlNumberFormatter::format() unbounded allocation on expon… - #24443

Open
devnexen wants to merge 1 commit into
php:masterfrom
devnexen:intl_numfmt_decimal_exponent
Open

devnexen wants to merge 1 commit into
php:masterfrom
devnexen:intl_numfmt_decimal_exponent

Conversation

@devnexen

Copy link
Copy Markdown
Member

…ent strings.

A numeric string such as "1e999999999" made ICU expand every digit outside ZendMM, ignoring memory_limit. Strings in exponent notation are now rejected, so the output stays proportional to the input length.

…ent strings.

A numeric string such as "1e999999999" made ICU expand every digit outside
ZendMM, ignoring memory_limit. Strings in exponent notation are now rejected,
so the output stays proportional to the input length.
@devnexen
devnexen marked this pull request as ready for review October 19, 2026 19:06
@devnexen
devnexen requested a review from LamentXU123 as a code owner October 19, 2026 19:06
@LamentXU123

Copy link
Copy Markdown
Member

Can scale/ in skeletons also have this bug?

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