Files
meta-openembedded/meta-filesystems/recipes-utils
Yi Zhao f4bd933b30 ufs-utils: fix crash for ufs-utils list_bsg
The full_path buffer in find_bsg_device function consists of:
path + '/' + files->d_name + '\0'

So the buffer size should be: strlen(path) + strlen(files->d_name) + 2,
not: strlen(path) + strlen(files->d_name) + 1.

Backport a patch to fix crash when running 32-bit binary on 64-bit
system:
$ ufs-utils list_bsg
malloc(): invalid next size (unsorted)
Aborted (core dumped)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-20 13:09:40 -07:00
..
2025-06-26 07:24:00 -07:00
2025-04-04 19:18:46 -07:00
2024-09-10 07:20:42 -07:00