]> git.ipfire.org Git - thirdparty/linux.git/commit
string.h: Validate memtostr*()/strtomem*() arguments more carefully
authorKees Cook <kees@kernel.org>
Wed, 5 Feb 2025 21:41:58 +0000 (13:41 -0800)
committerKees Cook <kees@kernel.org>
Mon, 3 Mar 2025 17:35:50 +0000 (09:35 -0800)
commit1286f632a50ce03fdf89245183310e2aa9a91522
tree6aaeac5301012cafd83c629c60018b5fc4e0e708
parent9f25b1fb1c93942af870428fa394b42fcda7572f
string.h: Validate memtostr*()/strtomem*() arguments more carefully

Since these functions handle moving between C strings and non-C strings,
they should check for the appropriate presence/lack of the nonstring
attribute on arguments.

Signed-off-by: Kees Cook <kees@kernel.org>
include/linux/string.h