mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(vfs): fix coverity issue copy of overlapping memory in vfs_fat.c
This commit is contained in:
parent
ade6a5ec07
commit
a1e06ebab0
@ -23,9 +23,9 @@
|
||||
#ifdef CONFIG_VFS_SUPPORT_DIR
|
||||
struct cached_data{
|
||||
#if FF_USE_LFN
|
||||
char file_path[FILENAME_MAX+FF_LFN_BUF+1];
|
||||
char file_path[FILENAME_MAX+1+FF_LFN_BUF+1]; //FILENAME_MAX+1: for dir_path, FF_LFN_BUF+1: for file name
|
||||
#else
|
||||
char file_path[FILENAME_MAX+FF_SFN_BUF+1];
|
||||
char file_path[FILENAME_MAX+1+FF_SFN_BUF+1]; //FILENAME_MAX+1: for dir_path, FF_LFN_BUF+1: for file name
|
||||
#endif
|
||||
FILINFO fileinfo;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user