Re: [PATCH v2] drivers/soc: Remove all strcpy() uses

From
Len Baker <hidden>
Date
2021-08-01 08:48:04
Also in
linux-arm-msm, linux-hardening, linux-renesas-soc, lkml
Reply to
Len Baker, 2021-07-31
On Sat, Jul 31, 2021 at 07:18:25PM +0200, Len Baker wrote:
strcpy() performs no bounds checking on the destination buffer. This
could result in linear overflows beyond the end of the buffer, leading
to all kinds of misbehaviors. The safe replacement is strscpy().

Moreover, when the size of the destination buffer cannot be obtained
using "sizeof", use the memcpy function instead of strscpy.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Len Baker <redacted>
Drop this patch. It has errors. Sorry for the noise.

Apologies,
Len

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (2 messages) 2 messages, 1 author, last reply 2021-08-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help