From: Steffen Klassert <steffen.klassert@secunet.com>
To: Daniel Yang <danielyangkang@gmail.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
"open list:NETWORKING [IPSEC]" <netdev@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net] xfrm: replace deprecated strncpy with strscpy_pad
Date: Fri, 15 Nov 2024 09:08:07 +0100 [thread overview]
Message-ID: <ZzcBZ5gEhE1QX2d1@gauss3.secunet.de> (raw)
In-Reply-To: <20241113092058.189142-1-danielyangkang@gmail.com>
On Wed, Nov 13, 2024 at 01:20:58AM -0800, Daniel Yang wrote:
> The function strncpy is deprecated since it does not guarantee the
> destination buffer is NULL terminated. Recommended replacement is
> strscpy. The padded version was used to remain consistent with the other
> strscpy_pad usage in the modified function.
>
> Signed-off-by: Daniel Yang <danielyangkang@gmail.com>
Applied to ipsec-next, thanks!
prev parent reply other threads:[~2024-11-15 8:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 9:20 Daniel Yang
2024-11-14 10:34 ` Paolo Abeni
2024-11-14 10:37 ` Steffen Klassert
2024-11-15 8:08 ` Steffen Klassert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZzcBZ5gEhE1QX2d1@gauss3.secunet.de \
--to=steffen.klassert@secunet.com \
--cc=danielyangkang@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=herbert@gondor.apana.org.au \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®