From: Nam Cao <namcao@linutronix.de>
To: Anshika Jain <anshikajain196872@gmail.com>,
Andy Shevchenko <andy@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
sashiko-bot@kernel.org, dri-devel@lists.freedesktop.org,
linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev,
Anshika Jain <anshikajain196872@gmail.com>
Subject: Re: [PATCH] staging: fbtft: fix len<=0 buffer overflow in define_fbtft_write_reg()
Date: Wed, 02 Sep 2026 14:25:46 +0200 [thread overview]
Message-ID: <87wlt3vnzp.fsf@yellow.woof> (raw)
In-Reply-To: <20260902045026.7442-1-anshikajain196872@gmail.com>
Anshika Jain <anshikajain196872@gmail.com> writes:
> This is a latent bug: nothing in the current code prevents
> two adjacent negative values in an init_sequence from producing len=0,
Can you elaborate what you mean by "two adjacent negative values in an
init_sequence from producing len=0"? How is it possible that negative
values in the init sequence causing len to be zero?
> and there is no guarantee future or out-of-tree panel definitions
> won't do so.
Basic testing of future drivers would prevent such bug. It is not on any
rarely-executed code path.
Nam
next prev parent reply other threads:[~2026-09-02 12:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-02 4:50 [PATCH] staging: fbtft: fix len<=0 buffer overflow in define_fbtft_write_reg() Anshika Jain
2026-09-02 5:58 ` Greg Kroah-Hartman
2026-09-02 12:25 ` Nam Cao [this message]
2026-09-02 19:03 ` Anshika Jain
2026-09-03 8:24 ` Nam Cao
2026-09-03 8:29 ` Greg Kroah-Hartman
2026-09-03 7:47 ` sashiko-bot
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=87wlt3vnzp.fsf@yellow.woof \
--to=namcao@linutronix.de \
--cc=andy@kernel.org \
--cc=anshikajain196872@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=sashiko-bot@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.