Re: [f2fs-dev] [PATCH 1/3] f2fs: fix buffer overruns in FS_IOC_{GET, SET}FSLABEL

2019-08-15 Thread Chao Yu
On 2019/8/16 13:55, Eric Biggers wrote: > From: Eric Biggers > > utf16s_to_utf8s() and utf8s_to_utf16s() take the number of characters, > not the number of bytes. > > Fixes: 61a3da4d5ef8 ("f2fs: support FS_IOC_{GET,SET}FSLABEL") > Signed-off-by: Eric Biggers Reviewed-by: Chao Yu Thanks, __

[f2fs-dev] [PATCH 1/3] f2fs: fix buffer overruns in FS_IOC_{GET, SET}FSLABEL

2019-08-15 Thread Eric Biggers
From: Eric Biggers utf16s_to_utf8s() and utf8s_to_utf16s() take the number of characters, not the number of bytes. Fixes: 61a3da4d5ef8 ("f2fs: support FS_IOC_{GET,SET}FSLABEL") Signed-off-by: Eric Biggers --- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git