Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix stack buffer overflow in yaffsfs_istat
Prevent a stack buffer overflow in yaffsfs_istat by increasing the buffer size to the size required by tsk_fs_time_to_str.
  • Loading branch information
micrictor committed Feb 22, 2020
1 parent 637772e commit 459ae81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsk/fs/yaffs.cpp
Expand Up @@ -2439,7 +2439,7 @@ static uint8_t
YAFFSFS_INFO *yfs = (YAFFSFS_INFO *)fs;
char ls[12];
YAFFSFS_PRINT_ADDR print;
char timeBuf[32];
char timeBuf[128];
YaffsCacheObject * obj = NULL;
YaffsCacheVersion * version = NULL;
YaffsHeader * header = NULL;
Expand Down

0 comments on commit 459ae81

Please sign in to comment.