Bug 131250 - Need to sanitize Date code to ensure we adhere to ES5
Summary: Need to sanitize Date code to ensure we adhere to ES5
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2014-04-04 17:59 PDT by Mark Lam
Modified: 2014-04-04 18:14 PDT (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lam 2014-04-04 17:59:42 PDT
So far, we've added strategic checks on the time milliseconds value in the Date object.  However, the spec is unclear about whether that limit applies to the UTC time, or Local time, or both.  Currently, we conservatively clip the value for both.

We also don't have a guarantee that we've done adequate limit checks to ensure we don't have underflow / overflow issues in the Date math code.  It would be great if there's something we can do to ensure that we don't silently underflow / overflow in the math thereby resulting in bogus Date strings.