diff options
author | Justin Stitt <justinstitt@google.com> | 2023-08-02 03:21:58 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-08-02 23:45:28 +0300 |
commit | 12d61a1bc28eef8d799ba00f370f421f7e942629 (patch) | |
tree | 0a0fd3ba74220d0feafb83bf81cb98030138399c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 54670b59cfab843671ecc6a92d9e0fda20174df0 (diff) | |
download | linux-12d61a1bc28eef8d799ba00f370f421f7e942629.tar.xz |
RISC-V: cpu: refactor deprecated strncpy
`strncpy` is deprecated for use on NUL-terminated destination strings [1].
Favor not copying strings onto stack and instead use strings directly.
This avoids hard-coding sizes and buffer lengths all together.
Link: https://github.com/KSPP/linux/issues/90
Cc: linux-hardening@vger.kernel.org
Suggested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Justin Stitt <justinstitt@google.com>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230802-arch-riscv-kernel-v2-1-24266e85bc96@google.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions