Skip to content

Conversation

@jfkthame
Copy link
Contributor

@jfkthame jfkthame commented Jun 5, 2024

If a long string of hex digits are passed to unicode-range, the code tries to parse them into a number before checking whether there are more than the 6 digits allowed by the syntax, and this may lead to integer overflow.

To avoid this, check the number of digits and error out earlier if there are too many to possibly be valid.

(See https://bugzilla.mozilla.org/show_bug.cgi?id=1900403)

If a long string of hex digits are passed to unicode-range, the code tries to
parse them into a number before checking whether there are more than the 6 digits
allowed by the syntax, and this may lead to integer overflow.

To avoid this, check the number of digits and error out earlier if there are
too many to possibly be valid.

(See https://bugzilla.mozilla.org/show_bug.cgi?id=1900403)
@emilio
Copy link
Member

emilio commented Nov 7, 2024

@bors-servo r+

@emilio emilio merged commit 4765111 into servo:main Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants