Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AOYASQAQLFvXHHtFBTsIqaq4.1.1795628830405.Hmail.2601110895@stu.pku.edu.cn>
Date: Thu, 26 Nov 2026 01:47:10 +0800 (GMT+08:00)
From: 吴尚哲 <wushangzhe26@....pku.edu.cn>
To: musl <musl@...ts.openwall.com>
Subject: Bug in rule_to_secs(): signed overflow when converting TZ transition dates to seconds

Hello,


We found a signed integer overflow in musl 1.2.5 on x86_64.
Out-of-range date fields in either a Julian-day (Jn) rule or a
month/week/day (Mm.n.d) rule can overflow the calculation that
converts the transition date to seconds.


In src/time/__tz.c, rule_to_secs() contains these expressions:
    t += 86400 * x;
    t += 86400 * (days + 7*(n-1));


Although t is a long long, the right-hand expressions are
evaluated as int. A signed overflow can therefore occur before
the result is added to t.


 吴尚哲
2601110895@....pku.edu.cn





Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.