commit | 688078e7f36c293dae25b338ddc9e0a2790f6e06 | [log] [tgz] |
---|---|---|
author | Randall Huang <huangrandall@google.com> | Fri Oct 18 14:56:22 2019 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Tue Oct 22 10:32:42 2019 -0700 |
tree | bfdb73e559a913582cbd3eb33656710c403645cf | |
parent | 9f701f6c772b15461843b92f9b41a0705e190a86 [diff] |
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>