Re: [Outreachy kernel] [PATCH v2] staging: android: Replace strcpy with strlcpy

2017-03-11 Thread Julia Lawall
On Sun, 12 Mar 2017, SIMRAN SINGHAL wrote: > On Sun, Mar 12, 2017 at 2:53 AM, Julia Lawall wrote: > > > > > > On Sun, 12 Mar 2017, simran singhal wrote: > > > >> Replace strcpy with strlcpy as strcpy does not check for buffer > >> overflow. > >> This is found using Flawfinder. > >> > >> Signed-

Re: [Outreachy kernel] [PATCH v2] staging: android: Replace strcpy with strlcpy

2017-03-11 Thread SIMRAN SINGHAL
On Sun, Mar 12, 2017 at 2:53 AM, Julia Lawall wrote: > > > On Sun, 12 Mar 2017, simran singhal wrote: > >> Replace strcpy with strlcpy as strcpy does not check for buffer >> overflow. >> This is found using Flawfinder. >> >> Signed-off-by: simran singhal >> --- >> >> v2: >>-Correcting the pl

Re: [Outreachy kernel] [PATCH v2] staging: android: Replace strcpy with strlcpy

2017-03-11 Thread Julia Lawall
On Sun, 12 Mar 2017, simran singhal wrote: > Replace strcpy with strlcpy as strcpy does not check for buffer > overflow. > This is found using Flawfinder. > > Signed-off-by: simran singhal > --- > > v2: >-Correcting the place of the parenthesis > > drivers/staging/android/ashmem.c | 3 ++-

[PATCH v2] staging: android: Replace strcpy with strlcpy

2017-03-11 Thread simran singhal
Replace strcpy with strlcpy as strcpy does not check for buffer overflow. This is found using Flawfinder. Signed-off-by: simran singhal --- v2: -Correcting the place of the parenthesis drivers/staging/android/ashmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/d