Re: [PATCH] crypto: af_alg - Annotate struct af_alg_iv with __counted_by
From: Simon Horman
Date: Fri Nov 21 2025 - 06:44:12 EST
On Fri, Nov 14, 2025 at 01:01:54AM +0100, Thorsten Blum wrote:
> Add the __counted_by() compiler attribute to the flexible array member
> 'iv' to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
> CONFIG_FORTIFY_SOURCE.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>