diff options
author | Hongbo Li <[email protected]> | 2024-08-28 20:32:21 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-08-29 12:33:07 -0700 |
commit | 597be7bd17c36c8fa7e075f0da4decc7ca3b9d1d (patch) | |
tree | 460ac7b7677c10251acf74a48776e127c0bf05fc /lib/parser.c | |
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions