]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/nolibc: properly align dirent buffer
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 19 Apr 2025 10:46:21 +0000 (12:46 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Sat, 19 Apr 2025 12:18:01 +0000 (14:18 +0200)
commit0e75768ba24d669dbf76530e21fd51cfe2fbd2a9
treef9e29342ba135d2d78a304a0dc649f6e37c9784e
parent9fca5554af70fd86fb1ed78362d86ebd1a4be2ef
tools/nolibc: properly align dirent buffer

As byte buffer is overlaid with a 'struct dirent64'.
it has to satisfy the structs alignment requirements.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Fixes: 665fa8dea90d ("tools/nolibc: add support for directory access")
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250419-nolibc-ubsan-v2-4-060b8a016917@weissschuh.net
tools/include/nolibc/dirent.h