xclock: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat May 31 15:25:14 UTC 2025


 Clock.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 33ed0f3e37da1473823cb79203937b418a6cee6b
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat May 24 15:54:35 2025 -0700

    Fix xclock -update n with n < 0.0005 will crash or misbehave
    
    0 <= n < 0.0005 will crash with a Floating point exception,
    due to a divide_by_zero in time_intervals() when dividing by
    (int) (update * 1000.0 + 0.5)
    
    n < 0 will result in a nonworking clock.
    
    Reported-by: @itaych in #5
    Patch-provided-by: @itaych in #5
    Closes: #5
    Fixes: 8c6739b ("X.Org Bug 13537: bugs in UTF-8 handling and regularized tick updating")
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/app/xclock/-/merge_requests/22>



More information about the xorg-commit mailing list