Re: [PATCH 01/10] misc: c2port: core: Ensure source size does not equal destination size in strncpy()

2020-07-14 Thread Geert Uytterhoeven
On Tue, Jul 14, 2020 at 10:01 AM Lee Jones wrote: > On Tue, 14 Jul 2020, Geert Uytterhoeven wrote: > > On Tue, Jul 14, 2020 at 9:46 AM Lee Jones wrote: > > > On Mon, 13 Jul 2020, Geert Uytterhoeven wrote: > > > > On Fri, Jun 26, 2020 at 3:06 PM Lee Jones wrote: > > > > > We need to ensure

Re: [PATCH 01/10] misc: c2port: core: Ensure source size does not equal destination size in strncpy()

2020-07-14 Thread Lee Jones
On Tue, 14 Jul 2020, Geert Uytterhoeven wrote: > Hi Lee, > > On Tue, Jul 14, 2020 at 9:46 AM Lee Jones wrote: > > On Mon, 13 Jul 2020, Geert Uytterhoeven wrote: > > > On Fri, Jun 26, 2020 at 3:06 PM Lee Jones wrote: > > > > We need to ensure there's a place for the NULL terminator. > > > > > >

Re: [PATCH 01/10] misc: c2port: core: Ensure source size does not equal destination size in strncpy()

2020-07-14 Thread Geert Uytterhoeven
Hi Lee, On Tue, Jul 14, 2020 at 9:46 AM Lee Jones wrote: > On Mon, 13 Jul 2020, Geert Uytterhoeven wrote: > > On Fri, Jun 26, 2020 at 3:06 PM Lee Jones wrote: > > > We need to ensure there's a place for the NULL terminator. > > > > But who's filling that space with a NUL (not NULL) terminator?

Re: [PATCH 01/10] misc: c2port: core: Ensure source size does not equal destination size in strncpy()

2020-07-14 Thread Lee Jones
On Mon, 13 Jul 2020, Geert Uytterhoeven wrote: > Hi Lee, > > On Fri, Jun 26, 2020 at 3:06 PM Lee Jones wrote: > > We need to ensure there's a place for the NULL terminator. > > But who's filling that space with a NUL (not NULL) terminator? > > > Fixes the following W=1 warning(s): > > > > In

Re: [PATCH 01/10] misc: c2port: core: Ensure source size does not equal destination size in strncpy()

2020-07-13 Thread Geert Uytterhoeven
Hi Lee, On Fri, Jun 26, 2020 at 3:06 PM Lee Jones wrote: > We need to ensure there's a place for the NULL terminator. But who's filling that space with a NUL (not NULL) terminator? > Fixes the following W=1 warning(s): > > In file included from include/linux/bitmap.h:9, > from

Re: [PATCH 01/10] misc: c2port: core: Ensure source size does not equal destination size in strncpy()

2020-06-26 Thread Rodolfo Giometti
On 26/06/2020 15:05, Lee Jones wrote: > We need to ensure there's a place for the NULL terminator. > > Fixes the following W=1 warning(s): > > In file included from include/linux/bitmap.h:9, > from include/linux/nodemask.h:95, > from include/linux/mmzone.h:17, > from include/linux/gfp.h:6, >

[PATCH 01/10] misc: c2port: core: Ensure source size does not equal destination size in strncpy()

2020-06-26 Thread Lee Jones
We need to ensure there's a place for the NULL terminator. Fixes the following W=1 warning(s): In file included from include/linux/bitmap.h:9, from include/linux/nodemask.h:95, from include/linux/mmzone.h:17, from include/linux/gfp.h:6, from include/linux/umh.h:4, from