zephyr/lib
Chris Friedt 9e5e294ea4 lib: os: clock: fix for CID 529870
Fix for CID 529870, where Coverity found an issue where `timespec.tv_sec`
is never greater than `UINT64_MAX / NSEC_PER_SEC` (18446744073).

This is naturally true when `time_t` is only 32-bit, which is actually
never the case for any Zephyr platform aside from `native_sim/native/32`.

When `time_t` is a signed 64-bit value, at some point in the future, but
maybe not in our lifetimes, `timespec.tv_sec` could exceed 18446744073,
since `INT64_MAX > UINT64_MAX / NSEC_PER_SEC`.

We should not see coverity issues errors like this in the future, once we
have a consistent `time_t` representation across all Zephyr platforms.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-07-11 08:21:46 -10:00
..
acpi lib: fix typo in multiple directories 2025-01-28 00:06:18 +01:00
cpp cpp: Add c++ version number 2025-02-10 15:57:26 +00:00
crc lib: crc: add CRC-32K/4.2 2025-04-14 09:49:02 +02:00
hash lib: hash: murmur3: Account for unaligned 32-bit access 2025-04-29 17:54:51 +02:00
heap kernel: heap: Add allocation metadata to allocated_bytes 2025-07-07 10:08:58 -05:00
libc libc: arcmwdt: grant all threads access to stdio locks 2025-07-10 19:54:27 -05:00
mem_blocks lib: mem_block: move to own folder 2023-12-13 17:27:54 -05:00
min_heap lib: min_heap: Refactor heapify_up/down functions 2025-06-26 11:58:05 -04:00
net_buf lib: net_buf: remove deprecated net_buf_put() and net_buf_get() functions 2025-03-12 19:04:19 +01:00
open-amp openamp: enable address translation in CMake 2025-06-27 08:44:56 -10:00
os lib: os: clock: fix for CID 529870 2025-07-11 08:21:46 -10:00
posix posix: fix posix clock undefined type 2025-07-09 09:43:52 -05:00
runtime
smf lib: smf: fix function name typo "share_paren" 2025-07-08 13:41:59 -05:00
utils json: fix encoding of string null pointer 2025-07-11 08:15:36 -10:00
uuid lib: uuid: do not support UUID_v5 on TF-M platforms 2025-05-27 10:29:34 +02:00
CMakeLists.txt lib: min_heap: Add min-heap data structure 2025-06-07 13:29:24 +01:00
Kconfig lib: min_heap: Add min-heap data structure 2025-06-07 13:29:24 +01:00