-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal Assertion failed when parsing incorrect URL containing u200b Unicode character #51593
Comments
@nodejs/url |
@anonrig it seems like an issue with ada parse auto out = ada::parse<ada::url_aggregator>(input.ToStringView()); |
I am checking it. |
It is a bug in ada. See ada-url/ada#583 @anonrig will need to review. |
For people who are curious, we did not have any test with an IPv4 address containing ignorable Unicode characters. This was just an untested code path. |
@anonrig has approved my fix and the fix is merged. A new release of ada will be necessary to fix this issue in node. |
Fixed on main with #51542, should be included in the next release and backported |
Version
v20.10.0
Platform
Linux blackbox 6.7.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 21 Jan 2024 22:14:10 +0000 x86_64 GNU/Linux
Subsystem
url
What steps will reproduce the bug?
Trying to parse this will crash the process instead of throwing an exception. Not sure what would be the intended behavior here:
The URL contains a u200b unicode character in front of the first digit!
How often does it reproduce? Is there a required condition?
Always reproducible
What is the expected behavior? Why is that the expected behavior?
An exception that can be caught.
What do you see instead?
Process crashes with
Additional information
No response
The text was updated successfully, but these errors were encountered: