zephyr/lib/posix
Chris Friedt 8ab6e29cf1 posix: shm: ensure addend is less than INTPTR_MAX
Although it's quite unlikely that we will see shared memory
objects in practice that are greater than 2GiB, there is a
possibility of integer overflow when comparing intptr_t and
size_t, since the former is signed and the latter is unsigned.

Explicitly check to ensure that the addend is less than
INTPTR_MAX before subtraction.

This fixes CID 487734

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-01-30 20:27:59 +01:00
..
options posix: shm: ensure addend is less than INTPTR_MAX 2025-01-30 20:27:59 +01:00
shell posix: deprecate POSIX_ENV _CONFSTR _SYSCONF and _UNAME 2024-06-04 16:27:12 -05:00
CMakeLists.txt
Kconfig