Skip to content

Signed integer overflow in latest node 18 LTS releaseΒ #48621

Closed
@jkrems

Description

@jkrems

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.whatwg-urlIssues and PRs related to the WHATWG URL implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions