[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8e68e02a-2c58-485c-a13e-a4b52616e63e@kernel.org>
Date: Wed, 30 Oct 2024 06:57:28 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Abdul Rahim <abdul.rahim@...ahoo.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nfc: s3fwrn5: Prefer strscpy() over strcpy()
On 29/10/2024 23:16, Abdul Rahim wrote:
> 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 [1]
>
> this fixes checkpatch warning:
> WARNING: Prefer strscpy over strcpy
You should explain why it is safe to omit the destination buffer size.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Best regards,
Krzysztof
Powered by blists - more mailing lists