diff options
| author | Len Baker <[email protected]> | 2021-08-08 14:50:10 +0200 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2021-09-21 17:41:49 -0500 |
| commit | 26bc7a6a0beed882032aa7c945e44d7e82887073 (patch) | |
| tree | 9c045e791c3e9445618a830ceddc88db86de812e /scripts/gdb/linux/cpus.py | |
| parent | f69a91e376695ae6048934c92f6b7eea6c51cd86 (diff) | |
soc: qcom: pdr: Prefer strscpy 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. The safe replacement is strscpy().
This is a previous step in the path to remove the strcpy() function
entirely from the kernel.
Signed-off-by: Len Baker <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions