From: Tom de Vries <tdevries@suse.de>
To: Keith Seitz <keiths@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb/build] Fix Wstringop-overflow
Date: Sun, 1 Nov 2026 17:16:49 +0100 [thread overview]
Message-ID: <09b5f7ab-22ba-4b55-bc72-982524a8d8d9@suse.de> (raw)
In-Reply-To: <c3d35864-be9f-4bb8-b209-840bbb428038@redhat.com>
On 10/29/26 9:13 PM, Keith Seitz wrote:
> Hi,
>
> On 10/23/26 4:09 PM, Tom de Vries wrote:
>> The warning triggers about the (unlikely) possibility that
>> "bfd_section_size (sect)" is UINT64_MAX, so effectively we have
>> "gdb::byte_vector buf (0)", which makes buf.back () undefined behavior.
>>
>> Fix the warning by dropping the "+ 1" and using push_back instead of
>> back.
> Thank you for the concise explanation. LGTM
>
> Reviewed-By: Keith Seitz <keiths@redhat.com>
>
Hi Keith,
thanks for the review.
I got a comment suggesting to disable the warning, and I've submitted a
patch with that approach [1].
If that patch gets approved, there's no need for this one. Otherwise,
I'll commit this one.
Thanks,
- Tom
[1] https://sourceware.org/pipermail/gdb-patches/2026-November/231556.html
> Keith
>
prev parent reply other threads:[~2026-11-01 16:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-23 23:09 Tom de Vries
2026-10-29 20:13 ` Keith Seitz
2026-11-01 16:16 ` Tom de Vries [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=09b5f7ab-22ba-4b55-bc72-982524a8d8d9@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=keiths@redhat.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