Re: [PATCH] btrfs: Annotate structs with __counted_by()
From: David Sterba
Date: Mon Aug 12 2024 - 07:31:22 EST
On Mon, Aug 12, 2024 at 12:36:20PM +0200, Thorsten Blum wrote:
> Add the __counted_by compiler attribute to the flexible array member
> stripes to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
> CONFIG_FORTIFY_SOURCE.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxxx>
Reviewed-by: David Sterba <dsterba@xxxxxxxx>