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)
commitd64d11b733dd435c9fce6397bcc0d235c68d1b39
treeac6376467ea290c9e3838c1543a28e8de9b74483
parent3cbd2090d334eb4456db0005f7b76adb3b6fd8db
parent82183b03de5f80f5d9c45cbb7129cd03f592f474
Merge branch 'replace-deprecated-strcpy-with-strscpy'

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>