From: Tom Tromey <tom@tromey.com>
To: Pedro Alves <pedro@palves.net>
Cc: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb/symtab] Fix out-of-bounds in objfile::section_offset
Date: Fri, 15 Jul 2022 12:55:19 -0600 [thread overview]
Message-ID: <87bktqnr3c.fsf@tromey.com> (raw)
In-Reply-To: <53735898-5c00-1af6-c09a-7cc4622b64f7@palves.net> (Pedro Alves's message of "Tue, 12 Jul 2022 11:25:21 +0100")
>>>>> "Pedro" == Pedro Alves <pedro@palves.net> writes:
Pedro> Another question is, why do the bfd sections grow in the first
Pedro> place?
It does seem bad if this can happen randomly. If it can be done
intentionally though we could have gdb take whatever action is needed
when first reading the BFD to get the full section count.
All this stuff with section indices only exists for the case where an
objfile is loaded using different offsets for different sections. Can
this really happen (aside from absolute sections)? If not maybe we
could just get rid of all of it.
Tom
next prev parent reply other threads:[~2022-07-15 18:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-12 8:00 Tom de Vries
2022-07-12 9:30 ` Pedro Alves
2022-07-12 10:16 ` Tom de Vries
2022-07-12 10:25 ` Pedro Alves
2022-07-12 12:09 ` Tom de Vries
2022-07-15 18:55 ` Tom Tromey [this message]
2022-07-18 14:34 ` Pedro Alves
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=87bktqnr3c.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@palves.net \
--cc=tdevries@suse.de \
/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).