nuttx/fs/romfs
raiden00pl 45c75f3bda fs/romfs: fix node cache overflow in directories with >256 entries
romfs_cachenode() tracked the allocated size of rn_child in a uint8_t
while rn_count is a uint16_t. Past 256 entries the size wraps to zero,
the grow condition rn_count == num - 1 can never be true again and the
array is not reallocated: entries are written beyond the allocation,
corrupting the heap.

Track the allocated size in a size_t.

Signed-off-by: raiden00pl <raiden00@railab.me>
Assisted-by: Claude Code
2026-08-11 10:53:19 +08:00
..
CMakeLists.txt
fs_romfs.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
fs_romfs.h
fs_romfsutil.c fs/romfs: fix node cache overflow in directories with >256 entries 2026-08-11 10:53:19 +08:00
Kconfig fs: add fs dump in ROMFS/LITTLEFS 2026-01-19 16:40:57 +08:00
Make.defs