Thread (2 messages) 2 messages, 2 authors, 2026-03-01

Re: [PATCH net-next v1] NFC: s3fwrn5: Replace strcpy() with strscpy()

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2026-03-01 16:44:04
Also in: lkml

On 01/03/2026 15:32, tomasz.unger@yahoo.pl wrote:
From: Tomasz Unger <redacted>

Replace strcpy() with strscpy() which limits the copy to the size of
the destination buffer. Since fw_info->fw_name is an array, the
"an array with a fixed, declared size"

Reviewed-by: Krzysztof Kozlowski <redacted>

See similar comment here:
https://lore.kernel.org/all/8e68e02a-2c58-485c-a13e-a4b52616e63e@kernel.org/ (local)


Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help