[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250424183634.02c51156@kernel.org>
Date: Thu, 24 Apr 2025 18:36:34 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Shankari02 <shankari.ak0208@...il.com>
Cc: netdev@...r.kernel.org, allison.henderson@...cle.com,
davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
horms@...nel.org, skhan@...uxfoundation.org
Subject: Re: [PATCH] net: rds: Replace strncpy with strscpy in connection
setup
On Wed, 23 Apr 2025 21:07:30 +0530 Shankari02 wrote:
> This patch replaces strncpy() with strscpy(), which is the
> preferred, safer alternative. strscpy() guarantees null-termination
> as long as the destination buffer is non-zero in size, and also
> provides a return value that can be used to detect truncation.
>
> This change is made in accordance with the Linux kernel
> documentation which marks strncpy() as deprecated for bounded
> string copying:
You need to explain why padding is not necessary.
Please use full name in the Author / From line, like you used in the
Sign-off tag.
--
pw-bot: cr
Powered by blists - more mailing lists