[tz] Wrong behaviour with truncated TZif files

Paul Eggert eggert at cs.ucla.edu
Sun Feb 20 21:32:27 UTC 2022


On 2/17/22 05:09, Almaz Mingaleev via tz wrote:

> With a truncated TZif file it prints 331344000. With non-truncated one it
> prints 331372800.
> The latter is the right answer.

Thanks for reporting that. I installed the attached proposed patches; 
the first should fix it and the second updates a related comment.

This seems to be my weekend for fixing mktime bugs, as I fixed one in 
glibc yesterday involving time in Indiana <https://bugs.gnu.org/48085>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-processing-of-TZif-truncation.patch
Type: text/x-patch
Size: 4367 bytes
Desc: not available
URL: <https://mm.icann.org/pipermail/tz/attachments/20220220/45d64e15/0001-Fix-processing-of-TZif-truncation.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-private.h-UNINIT_TRAP-Add-comment.patch
Type: text/x-patch
Size: 927 bytes
Desc: not available
URL: <https://mm.icann.org/pipermail/tz/attachments/20220220/45d64e15/0002-private.h-UNINIT_TRAP-Add-comment.patch>


More information about the tz mailing list