From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Richard Davies <richard@arachsys.com>
Cc: linux-input@vger.kernel.org,
Mathias Gottschlag <mgottschlag@gmail.com>,
Hans de Goede <hdegoede@redhat.com>
Subject: Re: [PATCH] Input: focaltech - fix array out-of-bounds in focaltech_process_rel_packet
Date: Sun, 2 Aug 2026 18:21:14 -0700 [thread overview]
Message-ID: <am_s-KBWozJzlcWD@google.com> (raw)
In-Reply-To: <20260701190932.14960-1-richard@arachsys.com>
On Wed, Jul 01, 2026 at 08:09:32PM +0100, Richard Davies wrote:
> Make finger2 (and also finger1) unsigned, so that if the finger index in
> the packet is 0 then subtracting 1 creates an array index which overflows
> above the existing check for FOC_MAX_FINGERS, as the existing comment says
> it should, instead of writing to state->fingers[-1].
>
> Fixes: 05be1d079ec0 ("Input: psmouse - support for the FocalTech PS/2 protocol extensions")
> Signed-off-by: Richard Davies <richard@arachsys.com>
Applied, thank you. Sorry for the delay.
--
Dmitry
prev parent reply other threads:[~2026-08-03 1:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 19:09 [PATCH] Input: focaltech - fix array out-of-bounds in focaltech_process_rel_packet Richard Davies
2026-07-01 19:28 ` Richard Davies
2026-08-02 15:20 ` Richard Davies
2026-07-01 19:32 ` sashiko-bot
2026-08-03 1:21 ` Dmitry Torokhov [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=am_s-KBWozJzlcWD@google.com \
--to=dmitry.torokhov@gmail.com \
--cc=hdegoede@redhat.com \
--cc=linux-input@vger.kernel.org \
--cc=mgottschlag@gmail.com \
--cc=richard@arachsys.com \
/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