[Webkit-unassigned] [Bug 32304] New: WTF::gregorianDateTimeToMS() returns negative values for huge years

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 8 21:40:24 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=32304

           Summary: WTF::gregorianDateTimeToMS() returns negative values
                    for huge years
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tkent at chromium.org


WTF:gregorianDateTimeToMS() is in JavaScriptCore/wtf/DateMath.cpp.

It returns negative values for huge years.
For example, it  returns -1.85543E+17 for GregorianDateTime with
.year=11798100.

This issue doesn't cause any real bugs for now because JSC Date instances are
created with WTF::timeClip(), which maps a huge value to NaN.  However this
issue might cause a real bug in the future.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list