summaryrefslogtreecommitdiff
path: root/scripts/decode_stacktrace.sh
diff options
context:
space:
mode:
authorTomasz Unger <tomasz.unger@yahoo.pl>2026-03-01 15:12:54 +0300
committerJakub Kicinski <kuba@kernel.org>2026-03-04 04:12:46 +0300
commite63f5918adb8efa7d9609585318db773ac7cd241 (patch)
tree2eafd1875920cf5378aba0ef2d51223e5f6ec4e4 /scripts/decode_stacktrace.sh
parented0abfe93fd135dac223e87a3c945017b1fa8bfc (diff)
downloadlinux-e63f5918adb8efa7d9609585318db773ac7cd241.tar.xz
NFC: pn544: i2c: Replace strcpy() with strscpy()
Replace strcpy() with strscpy() which limits the copy to the size of the destination buffer. Since phy->firmware_name is an array, the two-argument variant of strscpy() is used - the compiler deduces the buffer size automatically. This is a defensive cleanup. As pointed out by Jakub Kicinski <kuba@kernel.org>, firmware_name is already bounded to NFC_FIRMWARE_NAME_MAXSIZE via nla_strscpy() in net/nfc/netlink.c before reaching this driver, so no actual buffer overflow is possible. Signed-off-by: Tomasz Unger <tomasz.unger@yahoo.pl> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260301121254.174354-1-tomasz.unger@yahoo.pl Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/decode_stacktrace.sh')
0 files changed, 0 insertions, 0 deletions