From: Lee Jones <lee@kernel.org>
To: Lee Jones <lee@kernel.org>, Eddie James <eajames@linux.ibm.com>,
linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Pavel Machek <pavel@kernel.org>, kernel test robot <lkp@intel.com>
Subject: Re: (subset) [PATCH v1 1/1] leds: pca955x: Avoid potential overflow when filling default_label (take 2)
Date: Wed, 02 Jul 2025 17:19:10 +0100 [thread overview]
Message-ID: <175147315099.3074723.1901469504534870629.b4-ty@kernel.org> (raw)
In-Reply-To: <20250630093906.1715800-1-andriy.shevchenko@linux.intel.com>
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 [李琼斯]
prev parent reply other threads:[~2025-07-02 16:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-30 9:39 Andy Shevchenko
2025-07-02 16:19 ` Lee Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=175147315099.3074723.1901469504534870629.b4-ty@kernel.org \
--to=lee@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=eajames@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=lkp@intel.com \
--cc=pavel@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®