Re: [PATCH v2 3/4] fs: unicode: Use strscpy() instead of strncpy()

2021-03-19 Thread Shreeya Patel
On 19/03/21 2:33 am, Eric Biggers wrote: On Thu, Mar 18, 2021 at 07:03:04PM +0530, Shreeya Patel wrote: Following warning was reported by Kernel Test Robot. In function 'utf8_parse_version', inlined from 'utf8_load' at fs/unicode/utf8mod.c:195:7: fs/unicode/utf8mod.c:175:2: warning:

Re: [PATCH v2 3/4] fs: unicode: Use strscpy() instead of strncpy()

2021-03-18 Thread Eric Biggers
On Thu, Mar 18, 2021 at 07:03:04PM +0530, Shreeya Patel wrote: > Following warning was reported by Kernel Test Robot. > > In function 'utf8_parse_version', > inlined from 'utf8_load' at fs/unicode/utf8mod.c:195:7: > >> fs/unicode/utf8mod.c:175:2: warning: 'strncpy' specified bound 12 equals >

RE: [PATCH v2 3/4] fs: unicode: Use strscpy() instead of strncpy()

2021-03-18 Thread David Laight
From: Shreeya Patel > Sent: 18 March 2021 14:13 > > On 18/03/21 7:03 pm, Shreeya Patel wrote: > > Following warning was reported by Kernel Test Robot. > > > > In function 'utf8_parse_version', > > inlined from 'utf8_load' at fs/unicode/utf8mod.c:195:7: > >>> fs/unicode/utf8mod.c:175:2: warning:

Re: [PATCH v2 3/4] fs: unicode: Use strscpy() instead of strncpy()

2021-03-18 Thread Shreeya Patel
On 18/03/21 7:03 pm, Shreeya Patel wrote: Following warning was reported by Kernel Test Robot. In function 'utf8_parse_version', inlined from 'utf8_load' at fs/unicode/utf8mod.c:195:7: fs/unicode/utf8mod.c:175:2: warning: 'strncpy' specified bound 12 equals destination size

[PATCH v2 3/4] fs: unicode: Use strscpy() instead of strncpy()

2021-03-18 Thread Shreeya Patel
Following warning was reported by Kernel Test Robot. In function 'utf8_parse_version', inlined from 'utf8_load' at fs/unicode/utf8mod.c:195:7: >> fs/unicode/utf8mod.c:175:2: warning: 'strncpy' specified bound 12 equals destination size [-Wstringop-truncation] 175 | strncpy(version_string,