[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169279175569.797584.351106709683075020.b4-ty@ellerman.id.au>
Date: Wed, 23 Aug 2023 21:55:55 +1000
From: Michael Ellerman <patch-notifications@...erman.id.au>
To: Geoff Levand <geoff@...radead.org>,
Nicholas Piggin <npiggin@...il.com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
Justin Stitt <justinstitt@...gle.com>
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Kees Cook <keescook@...omium.org>,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH] powerpc/ps3: refactor strncpy usage
On Wed, 16 Aug 2023 21:39:24 +0000, Justin Stitt wrote:
> `strncpy` is deprecated for use on NUL-terminated destination strings [1].
>
> `make_first_field()` should use similar implementation to `make_field()`
> due to memcpy having more obvious behavior here. The end result yields
> the same behavior as the previous `strncpy`-based implementation
> including the NUL-padding.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/ps3: refactor strncpy usage
https://git.kernel.org/powerpc/c/f94a84a0914841d79a38df7cc75512d88b31a0dc
cheers
Powered by blists - more mailing lists