Re: [PATCH] keys: Annotate struct asymmetric_key_id with __counted_by
From: Lukas Wunner
Date: Sun Oct 26 2025 - 05:03:15 EST
On Thu, Oct 23, 2025 at 07:48:11PM +0200, Thorsten Blum wrote:
> Add the __counted_by() compiler attribute to the flexible array member
> 'data' to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
> CONFIG_FORTIFY_SOURCE.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
Reviewed-by: Lukas Wunner <lukas@xxxxxxxxx>