]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'replace-deprecated-strcpy-with-strscpy'
authorJakub Kicinski <kuba@kernel.org>
Thu, 29 Aug 2024 19:33:14 +0000 (12:33 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Aug 2024 19:33:15 +0000 (12:33 -0700)
Hongbo Li says:

====================
replace deprecated strcpy with strscpy

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
====================

Link: https://patch.msgid.link/20240828123224.3697672-1-lihongbo22@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge