[tz] Wrong behaviour with truncated TZif files
Paul Eggert
eggert at cs.ucla.edu
Mon May 23 18:14:21 UTC 2022
On 5/23/22 04:48, Almaz Mingaleev wrote:
> I think overflow happens somewhere.
> Please see the attached code.
That test doesn't look right, as each mktime call modifies its argument,
polluting the next test case. Please try the attached test instead,
ported to C. On my platform (Ubuntu 22.04, x86-64) this outputs:
sizeof time_t: 8
2120284800
2120256000
4076812800
4076784000
which looks OK.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 934 bytes
Desc: not available
URL: <http://mm.icann.org/pipermail/tz/attachments/20220523/3d6c84db/attachment.c>
More information about the tz
mailing list