diff options
author | Maninder Singh <maninder1.s@samsung.com> | 2016-12-08 04:10:30 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-07 01:59:44 (GMT) |
commit | 0686a9bc42adff7e70f345685a059ccd2de6f42d (patch) | |
tree | c866c106bb090382179a0be2113a22e6ac524c69 /Documentation/pti | |
parent | 82338e9ffba55e611613f6a5dfd17697fd76e1e2 (diff) | |
download | linux-0686a9bc42adff7e70f345685a059ccd2de6f42d.tar.xz |
ARM: omap2+: fixing wrong strcat for Non-NULL terminated string
[ Upstream commit 5066d5296ff2db20625e5f46e7338872c90c649f ]
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 <maninder1.s@samsung.com>
Signed-off-by: Vaneet Narang <v.narang@samsung.com>
CC: Russell King <linux@armlinux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/pti')
0 files changed, 0 insertions, 0 deletions