zephyr/subsys/settings/src
sudarsan N 654e690057 settings: zms: fix out-of-bounds null terminator write
Previously, zms_read() could fill the buffer up to sizeof(rdname),
leaving no space for the null terminator, which could cause an
out-of-bounds write.

This change reduces the read size to sizeof(rdname) - 1 and appends
a '\0' manually, ensuring the buffer is always null-terminated safely.

Fixes: CID 516244
Fixes: #90533

Signed-off-by: sudarsan N <sudarsansamy2002@gmail.com>
2025-06-26 11:12:49 +02:00
..
CMakeLists.txt
settings_fcb.c
settings_file.c
settings_init.c
settings_line.c
settings_none.c
settings_nvs.c
settings_priv.h
settings_runtime.c
settings_shell.c settings: adopt SHELL_HELP 2025-06-13 10:41:42 -04:00
settings_store.c settings: replace [[maybe_unused]] by __maybe_unused 2025-05-15 22:13:49 +02:00
settings_zms.c settings: zms: fix out-of-bounds null terminator write 2025-06-26 11:12:49 +02:00
settings.c