Re: (subset) [PATCH v3 1/1] leds: pca955x: Avoid potential overflow when filling default_label

From: Lee Jones
Date: Thu Apr 10 2025 - 06:22:37 EST


On Mon, 07 Apr 2025 18:13:26 +0300, Andy Shevchenko wrote:
> GCC compiler (Debian 14.2.0-17) is not happy about printing
> into a too short buffer (when build with `make W=1`):
>
> drivers/leds/leds-pca955x.c:554:33: note: ‘snprintf’ output between 2 and 12 bytes into a destination of size 8
>
> Indeed, the buffer size is chosen based on some assumptions,
> while in general the assigned value might not fit (GCC can't
> prove it does).
>
> [...]

Applied, thanks!

[1/1] leds: pca955x: Avoid potential overflow when filling default_label
commit: 1463b1c5bb231a8d46dc9db1773a31167614f84b

--
Lee Jones [李琼斯]