]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libuuid: fix timestamp overflow for pre-1970 dates
authorKiran Rangoon <kiranrangoon0@gmail.com>
Mon, 29 Dec 2025 03:50:59 +0000 (22:50 -0500)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 29 Dec 2025 13:43:34 +0000 (14:43 +0100)
commite6bd5aaa722cf2a29f901ef2fa07d54c09af8bc5
treefb69b7068a7e081d3f372f9a652a66bcedff8736
parent49dcd5e635ffeaf8417a06337c31ccdd0ac68ae2
libuuid: fix timestamp overflow for pre-1970 dates

Use int64_t arithmetic to correctly handle timestamps before Unix epoch.
This fixes the overflow that was causing UUID timestamps from 1582 to
appear as far-future dates. Update test expectations accordingly.

Signed-off-by: Kiran Rangoon <kiranrangoon0@gmail.com>
Reviewed-by: Thomas Weißschuh <thomas@t-8ch.de>
libuuid/src/uuid_time.c
tests/expected/uuid/uuidparse