[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175147315099.3074723.1901469504534870629.b4-ty@kernel.org>
Date: Wed, 02 Jul 2025 17:19:10 +0100
From: Lee Jones <lee@...nel.org>
To: Lee Jones <lee@...nel.org>, Eddie James <eajames@...ux.ibm.com>,
linux-leds@...r.kernel.org, linux-kernel@...r.kernel.org,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Pavel Machek <pavel@...nel.org>, kernel test robot <lkp@...el.com>
Subject: Re: (subset) [PATCH v1 1/1] leds: pca955x: Avoid potential
overflow when filling default_label (take 2)
On Mon, 30 Jun 2025 12:39:06 +0300, Andy Shevchenko wrote:
> GCC compiler v8.5.0 is not happy about printing
> into a too short buffer (when build with `make W=1`):
>
> drivers/leds/leds-pca955x.c:696:5: note: 'snprintf' output between 2 and 11 bytes into a destination of size 8
>
> Unfortunately this is a false positive from the old GCC versions,
> but we may still improve the code by using '%hhu' format specifier
> and reduce buffer size by 4 bytes.
>
> [...]
Applied, thanks!
[1/1] leds: pca955x: Avoid potential overflow when filling default_label (take 2)
commit: 239afba8b9f3b0fcfd464d5ffeaed0ed4441c5a4
--
Lee Jones [李琼斯]
Powered by blists - more mailing lists