Closed Bug 2027609 Opened 3 months ago Closed 1 month ago

uint32_t Integer overflow in non-ISO Date parser

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: jandem, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

SpiderMonkey accepts large inputs like this:

print(new Date("4294967303").toISOString());
// 4294967303 mod 2^32 = 7 → parsed as month 7 (July), defaulted to July 1, 2001.

Both V8 and JSC reject this one in their date parsers.

Severity: -- → N/A
Priority: -- → P3
Type: task → defect
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: