Bug 250553 - year 2038 problem in WebKit/Source/WTF/wtf/DateMath.cpp
Summary: year 2038 problem in WebKit/Source/WTF/wtf/DateMath.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Windows 10
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-13 02:08 PST by Yasuhide Omori
Modified: 2023-01-16 12:25 PST (History)
7 users (show)

See Also:


Attachments
Patch (1.48 KB, patch)
2023-01-15 13:03 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhide Omori 2023-01-13 02:08:58 PST
Hi!

Code taken from http://support.microsoft.com/kb/167296 has this problem.
Microsoft's fix exists: https://learn.microsoft.com/en-us/windows/win32/sysinfo/converting-a-time-t-value-to-a-file-time

Please fix it.

Thanks
Comment 1 Yasuhide Omori 2023-01-13 03:16:39 PST
FYI:
People discuss this problem, saying "使用64位乘法代替Int32x32To64函数"
https://cloud.tencent.com/developer/ask/sof/171317

It means "use 64bit multiplication instead of Int32x32To64 function."
Comment 2 Fujii Hironori 2023-01-15 13:03:02 PST
Created attachment 464510 [details]
Patch
Comment 3 EWS 2023-01-16 12:24:15 PST
Committed 258961@main (00e89b0e200a): <https://commits.webkit.org/258961@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 464510 [details].
Comment 4 Radar WebKit Bug Importer 2023-01-16 12:25:17 PST
<rdar://problem/104304776>