diff options
author | Len Baker <[email protected]> | 2021-08-08 14:50:11 +0200 |
---|---|---|
committer | Geert Uytterhoeven <[email protected]> | 2021-08-12 12:36:57 +0200 |
commit | 148bcca9ad0488d623aa36b21ac152bb056a1ae4 (patch) | |
tree | 5f1b5512f0506500396eaaffb277038c3a3a6b3c /scripts/gdb/linux/timerlist.py | |
parent | bfe6b5590ce6cab81b3ee51b4541bd1d0b18b3b2 (diff) |
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: Len Baker <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions