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)
Core
JavaScript Engine
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.
Updated•3 months ago
|
Severity: -- → N/A
Priority: -- → P3
| Reporter | ||
Updated•1 month ago
|
Type: task → defect
| Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Pushed by andre.bargull@gmail.com:
https://github.com/mozilla-firefox/firefox/commit/881753f8cde5
https://hg.mozilla.org/integration/autoland/rev/7bbfc33f15ef
Reject overlong number fields when parsing dates. r=spidermonkey-reviewers,mgaudet
Comment 3•1 month ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox154:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Updated•6 days ago
|
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in
before you can comment on or make changes to this bug.
Description
•