Re: [PATCH v2] f2fs: fix to avoid memory leakage in f2fs_listxattr

From: Chao Yu
Date: Tue Oct 22 2019 - 04:35:47 EST


On 2019/10/18 14:56, Randall Huang wrote:
> 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@xxxxxxxxxx>

Reviewed-by: Chao Yu <yuchao0@xxxxxxxxxx>

Thanks,