Skip to content
Commit 148bcca9 authored by Len Baker's avatar Len Baker Committed by Geert Uytterhoeven
Browse files

soc: renesas: Prefer memcpy() over strcpy()



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. So, use memcpy() as a safe replacement.

This is a previous step in the path to remove the strcpy() function
entirely from the kernel.

Signed-off-by: default avatarLen Baker <len.baker@gmx.com>
Link: https://lore.kernel.org/r/20210808125012.4715-3-len.baker@gmx.com


Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent bfe6b559
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment