diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-01-11 01:37:44 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-08 09:58:09 +0100 |
| commit | 9bbb93a9e8d02c55155504b9020f19782b968c63 (patch) | |
| tree | 191e5a9178d5cb3c571c6c5a6a14ea60e6848c6e /tools | |
| parent | 52f0a28e17f711d7567605f1de6d1d48c6069f99 (diff) | |
| download | linux-9bbb93a9e8d02c55155504b9020f19782b968c63.tar.gz linux-9bbb93a9e8d02c55155504b9020f19782b968c63.tar.bz2 linux-9bbb93a9e8d02c55155504b9020f19782b968c63.zip | |
hostfs: fix string handling in __dentry_name()
[ Upstream commit 60a6002432448bb3f291d80768ae98d62efc9c77 ]
strcpy() should not be used with destination potentially overlapping
the source; what's more, strscpy() in there is pointless - we already
know the amount we want to copy; might as well use memcpy().
Fixes: c278e81b8a02 "hostfs: Remove open coded strcpy()"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
