Re: [PATCH] btrfs: Annotate struct name_cache_entry with __counted_by()

From: David Sterba
Date: Tue Aug 13 2024 - 08:58:57 EST


On Tue, Aug 13, 2024 at 12:53:15PM +0200, Thorsten Blum wrote:
> Add the __counted_by compiler attribute to the flexible array member
> name to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
> CONFIG_FORTIFY_SOURCE.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxxx>

Thanks,

Reviewed-by: David Sterba <dsterba@xxxxxxxx>