public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sophrosx at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug demangler/106622] New: Bug report
Date: Mon, 15 Aug 2022 11:17:03 +0000	[thread overview]
Message-ID: <bug-106622-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106622

            Bug ID: 106622
           Summary: Bug report
           Product: gcc
           Version: rust/master
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: demangler
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sophrosx at gmail dot com
  Target Milestone: ---

Created attachment 53459
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53459&action=edit
testcases for nm-new

Hello,

I detected the memory leak and dead loop problems through fuzz testing, which I
think might be a vulnerability.

I found that the binutils-gdb[https://github.com/bminor/binutils-gdb]'s program
nm-new with the test inputs triggered dead loop and memory leak
vulnerabilities. As a result, I submit the testcases to binutils and here is
the bug report[https://sourceware.org/bugzilla/show_bug.cgi?id=29492].

The configuration of binutils is:

$  ./configure --disable-shared && make -j

and compiled with gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

Then the maintainer Alan Modra[amodra@gmail.com] told me that the endless
looping is all in the rust demangler. What is more, the symbols being demangled
are:
1) _RYXBAL_OFFGLOBTABLE_
2) _RYFGNUSLT_FHStNB10ay_start
3) _RYDGLOBOFFSET_TABLE_
4) _RYFGDIC6gnu_compilediBtOhighlightEH_FRAME_HDR
5) _RYFUDGC6ShigdefaulttiBtOhighlightEH_FRAME_HDR
6) _RYFUDGC6Shighdignu_compiledhlightEH_FRAME_HDR
7) _RYFIMYeB_xDGLtSarray_start
8) _RYdMMYTopFinFGAarral_start
9) _RMYADGC0hdpnit_Grray_start
10) _RYNSMICu2FiFGtDBrray_s
11) _RYTOdPjesistePDGC1onRLab_e
12) _RIYADGO0Rdpnit_Grray_start

Further more, I add those testcases in the attachment. If there is anything I
am unclear about or need to discuss further, please feel free to contact me~

Looking forward to your reply!

                 reply	other threads:[~2022-08-15 11:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=bug-106622-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).