Re: [PATCH v3] mach-omap2: fixing wrong strcat for Non-NULL terminated string

2016-12-27 Thread Tony Lindgren
* Maninder Singh [161207 20:16]: > Issue caught with static analysis tool: > "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)" > > Use strlcpy _includes_ the NUL terminator, and strlcat() which ensures > that it won't overflow the buffer. Applying into omap-for-v4.10/fixes th

[PATCH v3] mach-omap2: fixing wrong strcat for Non-NULL terminated string

2016-12-07 Thread Maninder Singh
Issue caught with static analysis tool: "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)" Use strlcpy _includes_ the NUL terminator, and strlcat() which ensures that it won't overflow the buffer. Reported-by: Maninder Singh Signed-off-by: Vaneet Narang CC: Russell King ---

Re: [PATCH v3] mach-omap2: fixing wrong strcat for Non-NULL terminated string

2016-12-06 Thread Tony Lindgren
* Maninder Singh [161204 21:32]: > Issue caught with static analysis tool: > "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)" > > Use strlcpy _includes_ the NUL terminator, and strlcat() which ensures > that it won't overflow the buffer. > > Reported-by: Maninder Singh > Si

[PATCH v3] mach-omap2: fixing wrong strcat for Non-NULL terminated string

2016-12-04 Thread Maninder Singh
Issue caught with static analysis tool: "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)" Use strlcpy _includes_ the NUL terminator, and strlcat() which ensures that it won't overflow the buffer. Reported-by: Maninder Singh Signed-off-by: Vaneet Narang Signed-off-by: Russell