-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.whatwg-urlIssues and PRs related to the WHATWG URL implementation.Issues and PRs related to the WHATWG URL implementation.
Description
Version
18.16.1
Platform
No response
Subsystem
deps/ada
What steps will reproduce the bug?
As far as I can tell, any use of the URL constructor which now calls into native code from ada:
new URL('s://g');
This is reported when building with ubsan
.
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
No undefined behavior caused by using the URL constructor.
What do you see instead?
An integer overflow.
Additional information
This was fixed upstream by using uint64 literals instead of signed ints: ada-url/ada@38d6eae.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.whatwg-urlIssues and PRs related to the WHATWG URL implementation.Issues and PRs related to the WHATWG URL implementation.