All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crypto: zstd - replace zero-length array with flexible array member
@ 2025-07-03 17:19 Thorsten Blum
  2025-07-03 21:57 ` Kees Cook
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Thorsten Blum @ 2025-07-03 17:19 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Nick Terrell, David Sterba
  Cc: linux-hardening, Thorsten Blum, linux-crypto, linux-kernel

Replace the deprecated zero-length array with a modern flexible array
member in the struct zstd_ctx.

No functional changes intended.

Link: https://github.com/KSPP/linux/issues/78
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 crypto/zstd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/zstd.c b/crypto/zstd.c
index 657e0cf7b952..c489976c3e8b 100644
--- a/crypto/zstd.c
+++ b/crypto/zstd.c
@@ -25,7 +25,7 @@ struct zstd_ctx {
 	zstd_dctx *dctx;
 	size_t wksp_size;
 	zstd_parameters params;
-	u8 wksp[0] __aligned(8);
+	u8 wksp[] __aligned(8);
 };
 
 static DEFINE_MUTEX(zstd_stream_lock);
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-07-10  8:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-03 17:19 [PATCH] crypto: zstd - replace zero-length array with flexible array member Thorsten Blum
2025-07-03 21:57 ` Kees Cook
2025-07-03 22:46   ` Thorsten Blum
2025-07-08 14:14 ` David Sterba
2025-07-10  8:18 ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.