mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-27 04:00:57 +00:00
865a3ead18
Problem: Function f2fs_dev_is_unmounted() and get_device_info() define local variable "struct stat xxx". If the callstack is very deep and stack is smaller, it will result in stack corruption. Solution: It is better to use pointer and memory allocation instead of defining "structure stat" in function stack. Signed-off-by: Iris Chang <iris.chang@mediatek.com> [Jaegeuk Kim: fix build errors.] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> |
||
---|---|---|
.. | ||
f2fs_format_main.c | ||
f2fs_format_utils.c | ||
f2fs_format_utils.h | ||
f2fs_format.c | ||
Makefile.am |