* Re: [PATCH] crypto: polyval - Mark binary test vectors as nonstrings
[not found] <CALo22m2Qt5EyzKGDz4_wwitYUf-Xg+J3h4a-Q_4140sgM_Rj7Q@mail.gmail.com>
@ 2026-12-05 20:42 ` Eric Biggers
0 siblings, 0 replies; only message in thread
From: Eric Biggers @ 2026-12-05 20:42 UTC (permalink / raw)
To: Anggara Putra
Cc: linux-crypto@vger.kernel.org, Jason@zx2c4.com, ardb@kernel.org,
linux-hardening@vger.kernel.org
On Sat, Dec 05, 2026 at 08:01:30PM +0700, Anggara Putra wrote:
> The RFC 8452 key, input and digest are fixed-width binary test vectors.
> Enabling GCC's -Wunterminated-string-initialization flags their string
> literal initializers because the arrays omit the terminating NUL.
> Mark the arrays as __nonstring. The test data and the length passed to
> polyval() stay the same.
>
> OpenAI Codex assisted with the patch, commit message, and local tests
> using the public KSPP compiler diagnostics.
>
> Link: https://github.com/KSPP/linux/issues/381
> Signed-off-by: Anggara Putra <anggaraputra87.ap@gmail.com>
Someone else sent a patch for this first
(https://lore.kernel.org/linux-crypto/20261204131128.74519-1-pawan@hexcode.au/).
I'll take the first one.
- Eric
^ permalink raw reply [flat|nested] only message in thread