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

Tony Lindgren tony at atomide.com
Tue Dec 27 09:40:18 PST 2016


* Maninder Singh <maninder1.s at samsung.com> [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 thanks.

Tony



More information about the linux-arm-kernel mailing list