Re: [PATCH] crypto: deflate - Use struct_size to improve deflate_alloc_stream

From: Herbert Xu

Date: Thu Nov 06 2025 - 02:07:47 EST


On Thu, Oct 30, 2025 at 05:32:17PM +0100, Thorsten Blum wrote:
> Use struct_size(), which provides additional compile-time checks for
> structures with flexible array members (e.g., __must_be_array()), to
> calculate the allocation size for a new 'deflate_stream'.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> crypto/deflate.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)

Patch appiled. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt