diff options
author | Randall Huang <huangrandall@google.com> | 2019-10-18 14:56:22 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-10-22 10:32:42 -0700 |
commit | 688078e7f36c293dae25b338ddc9e0a2790f6e06 (patch) | |
tree | bfdb73e559a913582cbd3eb33656710c403645cf /fs/stat.c | |
parent | 9f701f6c772b15461843b92f9b41a0705e190a86 (diff) | |
download | linux-688078e7f36c293dae25b338ddc9e0a2790f6e06.tar.gz linux-688078e7f36c293dae25b338ddc9e0a2790f6e06.tar.bz2 linux-688078e7f36c293dae25b338ddc9e0a2790f6e06.zip |
f2fs: fix to avoid memory leakage in f2fs_listxattr
In f2fs_listxattr, there is no boundary check before
memcpy e_name to buffer.
If the e_name_len is corrupted,
unexpected memory contents may be returned to the buffer.
Signed-off-by: Randall Huang <huangrandall@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/stat.c')
0 files changed, 0 insertions, 0 deletions