mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
crypto: zstd - replace zero-length array with flexible array member
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> Reviewed-by: Kees Cook <kees@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
03ba056e63
commit
25f4e1d719
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue