Yi Zhao dca497d728 ][PATCH] 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: Armin Kuster <akuster808@gmail.com>
2025-07-27 14:35:10 -04:00
..
2024-04-17 23:47:23 -07:00
2024-09-29 10:01:08 -07:00
2025-01-31 10:34:02 -08:00
2025-04-04 19:18:46 -07:00
2024-09-10 07:20:42 -07:00