public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug demangler/106622] New: Bug report
@ 2022-08-15 11:17 sophrosx at gmail dot com
0 siblings, 0 replies; only message in thread
From: sophrosx at gmail dot com @ 2022-08-15 11:17 UTC (permalink / raw)
To: gcc-bugs
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!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-15 11:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-15 11:17 [Bug demangler/106622] New: Bug report sophrosx at gmail dot com
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).