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

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


On Fri, 15 Sep 2023 13:10:10 -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 lm3697.
>
> [...]

Applied, thanks!

[1/1] leds: lm3697: Annotate struct lm3697 with __counted_by
commit: 1a210f7d060854f541be9a613bf942849fd5c0b5

--
Lee Jones [李琼斯]