From: Keith Seitz <keiths@redhat.com>
To: Tom Tromey <tromey@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Avoid buffer overflow in ada_decode
Date: Wed, 16 Aug 2023 10:56:39 -0700 [thread overview]
Message-ID: <54cd2609-2526-5ff6-37cb-640ace0c128a@redhat.com> (raw)
In-Reply-To: <20230816173133.867606-1-tromey@adacore.com>
On 8/16/23 10:31, Tom Tromey via Gdb-patches wrote:
> A bug report pointed out a buffer overflow in ada_decode, which Keith
> helpfully analyzed. ada_decode had a logic error when the input was
> all digits. While this isn't valid -- and would probably only appear
> in fuzzer tests -- it still should be handled properly.
>
> This patch adds a missing bounds check. Tested with the self-tests in
> an asan build.
That's excellent. Thank you for the quick turnaround!
Reviewed-by: Keith Seitz <keiths@redhat.com>
Keith
next prev parent reply other threads:[~2023-08-16 17:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-16 17:31 Tom Tromey
2023-08-16 17:56 ` Keith Seitz [this message]
2023-08-16 19:07 ` Tom Tromey
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=54cd2609-2526-5ff6-37cb-640ace0c128a@redhat.com \
--to=keiths@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@adacore.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).