From: Andreas Arnez <arnez@linux.vnet.ibm.com>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/4] tui-disasm: Fix window content buffer overrun
Date: Wed, 09 Nov 2016 12:07:00 -0000 [thread overview]
Message-ID: <m3fun0x3f9.fsf@oc1027705133.ibm.com> (raw)
In-Reply-To: <763f0466-3261-faca-fcc1-da6772c952c8@redhat.com> (Pedro Alves's message of "Tue, 8 Nov 2016 19:28:50 +0000")
On Tue, Nov 08 2016, Pedro Alves wrote:
[...]
> Missing copyright header.
Added.
> Funny, I was just playing with throwing a large
> function name at the compiler last week, after seeing:
>
> https://sourceware.org/ml/binutils/2016-11/msg00027.html
Wow, "mangled name of some 590K characters"... that's impressive. The
TUI crash already occurs with much shorter names. On the other hand,
IIRC, I had a version of my test with more than that (I think it was
over 1MB), and it worked. So I'm not sure why I didn't hit the problem
above.
[...]
>> + fail "compile"
>
> Shouldn't this be "untested" ?
Yeah, probably more appropriate. Changed.
[...]
> This is OK.
Thanks. I pushed the whole patch series with the changes above.
> This could probably all be greatly simplified with std::string
> and getting rid of the alloca...
Also note that the current implementation has a usability issue. With
long mangled names, the instructions are no longer visible on the
screen, and a lot of scrolling may be required. See also
https://sourceware.org/bugzilla/show_bug.cgi?id=15580
Of course, fixing that would be a different topic.
--
Andreas
next prev parent reply other threads:[~2016-11-09 12:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-08 18:57 [PATCH 0/4] Some TUI fixes Andreas Arnez
2016-11-08 18:58 ` [PATCH 1/4] tui-disasm: Fix window content buffer overrun Andreas Arnez
2016-11-08 19:29 ` Pedro Alves
2016-11-09 12:07 ` Andreas Arnez [this message]
2016-11-08 18:59 ` [PATCH 3/4] tui-winsource: Allocate for actual lines only Andreas Arnez
2016-11-08 19:31 ` Pedro Alves
2016-11-08 18:59 ` [PATCH 2/4] tui-disasm: Fix line buffer size calculation Andreas Arnez
2016-11-08 19:30 ` Pedro Alves
2016-11-08 19:00 ` [PATCH 4/4] tui-winsource: Remove failed-allocation logic Andreas Arnez
2016-11-08 19:31 ` 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=m3fun0x3f9.fsf@oc1027705133.ibm.com \
--to=arnez@linux.vnet.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@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