[PATCH] ntdll: Fix converting large 32-bit time_t when time_t is signed.

Erich E. Hoover erich.e.hoover at gmail.com
Sat Nov 21 23:42:43 CST 2020


Found this while trying to fix something else.  If time_t is treated
as signed (32-bit Linux) and you have a time_t value where the high
bit is set then when you convert it to 64-bit you get an improperly
sign-extended value.  See the included test for an example (make sure
you run the 32-bit tests).

Best,
Erich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-Fix-converting-large-32-bit-time_t-when-time_t.patch
Type: text/x-patch
Size: 3320 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20201121/eb9cf552/attachment.bin>


More information about the wine-devel mailing list