From: Lee Jones <lee@kernel.org>
To: Eddie James <eajames@linux.ibm.com>, Lee Jones <lee@kernel.org>,
linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Pavel Machek <pavel@kernel.org>
Subject: Re: (subset) [PATCH v3 1/1] leds: pca955x: Avoid potential overflow when filling default_label
Date: Thu, 10 Apr 2025 11:22:27 +0100 [thread overview]
Message-ID: <174428054735.1712257.6284971422979346985.b4-ty@kernel.org> (raw)
In-Reply-To: <20250407151441.706378-1-andriy.shevchenko@linux.intel.com>
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 [李琼斯]
prev parent reply other threads:[~2025-04-10 10:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 15:13 Andy Shevchenko
2025-04-10 10:22 ` 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=174428054735.1712257.6284971422979346985.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=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®