Re: [f2fs-dev] [PATCH 3/4] fsck.f2fs: fix potential overflow of copying i_name

2022-11-13 Thread Chao Yu
On 2022/11/10 22:07, Sheng Yong wrote: If i_namelen is corrupted, there may be an overflow when doing memcpy. Signed-off-by: Sheng Yong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net

[f2fs-dev] [PATCH 3/4] fsck.f2fs: fix potential overflow of copying i_name

2022-11-10 Thread Sheng Yong via Linux-f2fs-devel
If i_namelen is corrupted, there may be an overflow when doing memcpy. Signed-off-by: Sheng Yong --- fsck/fsck.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index 036a834..ebc60ad 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -742,8