[Bug 1737] meta hour error with different time-zones

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Feb 22 22:08:08 CET 2024


https://bugzilla.netfilter.org/show_bug.cgi?id=1737

--- Comment #1 from Pablo Neira Ayuso <pablo at netfilter.org> ---
1.0.9 is lacking this fix, which is already in git HEAD.

Does this fix your issue?

commit d392ddf243dcbf8a34726c777d2c669b1e8bfa85
Author: Florian Westphal <fw at strlen.de>
Date:   Thu Nov 2 15:34:13 2023 +0100

    meta: fix hour decoding when timezone offset is negative

    Brian Davidson says:

     meta hour rules don't display properly after being created when the
     hour is on or after 00:00 UTC. The netlink debug looks correct for
     seconds past midnight UTC, but displaying the rules looks like an
     overflow or a byte order problem. I am in UTC-0400, so today, 20:00
     and later exhibits the problem, while 19:00 and earlier hours are
     fine.

    meta.c only ever worked when the delta to UTC is positive.
    We need to add in case the second counter turns negative after
    offset adjustment.

    Also add a test case for this.

    Fixes: f8f32deda31d ("meta: Introduce new conditions 'time', 'day' and
'hour'")
    Reported-by: Brian Davidson <davidson.brian at gmail.com>
    Signed-off-by: Florian Westphal <fw at strlen.de>

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20240222/dcf1fec5/attachment.html>


More information about the netfilter-buglog mailing list