Re: (subset) [PATCH] leds: aw200xx: Annotate struct aw200xx with __counted_by

From: Lee Jones
Date: Wed Sep 20 2023 - 09:35:35 EST


On Fri, 15 Sep 2023 13:09:39 -0700, Kees Cook wrote:
> Prepare for the coming implementation by GCC and Clang of the __counted_by
> attribute. Flexible array members annotated with __counted_by can have
> their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS
> (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family
> functions).
>
> As found with Coccinelle[1], add __counted_by for struct aw200xx.
>
> [...]

Applied, thanks!

[1/1] leds: aw200xx: Annotate struct aw200xx with __counted_by
commit: e43d6b679091d196d9ac7664035155ed4c9637cc

--
Lee Jones [李琼斯]