diff options
author | Hongbo Li <lihongbo22@huawei.com> | 2024-08-28 20:32:21 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-29 12:33:07 -0700 |
commit | 597be7bd17c36c8fa7e075f0da4decc7ca3b9d1d (patch) | |
tree | 460ac7b7677c10251acf74a48776e127c0bf05fc /scripts | |
parent | b19f69a958300dcc93e453d7ed3fa354fc0f590c (diff) |
net/netrom: prefer strscpy over strcpy
The deprecated helper 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() [1].
Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1]
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://patch.msgid.link/20240828123224.3697672-4-lihongbo22@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions