public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug demangler/114830] New: c++filt stack overflows in rust demangler
@ 2024-04-24  0:36 amodra at gmail dot com
  2024-04-24  0:39 ` [Bug demangler/114830] " amodra at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: amodra at gmail dot com @ 2024-04-24  0:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114830
           Summary: c++filt stack overflows in rust demangler
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: demangler
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amodra at gmail dot com
  Target Milestone: ---

From zhougeng@mail.zgclab.edu.cn and wangdw@mail.zgclab.edu.cn:

Hi, we found several crashes in c++filt(Binutils 2.42), which is the latest
version.

In detail, it contains 12 stack-buffer-overflow triggering methods.


To assist in diagnosing and resolving these issues, we have attached the POC
files along with the gdb/asan logs.


Environment:

Linux 4f6b99b5cf37 6.2.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri
Oct  6 10:23:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux


Credit by: Wang Dawei and Zhou Geng, from Zhongguancun Laboratory.


Thanks for your time and attention to these matters.


Best regards,

Zhou Geng

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug demangler/114830] c++filt stack overflows in rust demangler
  2024-04-24  0:36 [Bug demangler/114830] New: c++filt stack overflows in rust demangler amodra at gmail dot com
@ 2024-04-24  0:39 ` amodra at gmail dot com
  2024-04-24  0:41 ` amodra at gmail dot com
  2024-04-24  4:54 ` xry111 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: amodra at gmail dot com @ 2024-04-24  0:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
Created attachment 58020
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58020&action=edit
asan report summary

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug demangler/114830] c++filt stack overflows in rust demangler
  2024-04-24  0:36 [Bug demangler/114830] New: c++filt stack overflows in rust demangler amodra at gmail dot com
  2024-04-24  0:39 ` [Bug demangler/114830] " amodra at gmail dot com
@ 2024-04-24  0:41 ` amodra at gmail dot com
  2024-04-24  4:54 ` xry111 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: amodra at gmail dot com @ 2024-04-24  0:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
Created attachment 58021
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58021&action=edit
c++filt crash binaries

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug demangler/114830] c++filt stack overflows in rust demangler
  2024-04-24  0:36 [Bug demangler/114830] New: c++filt stack overflows in rust demangler amodra at gmail dot com
  2024-04-24  0:39 ` [Bug demangler/114830] " amodra at gmail dot com
  2024-04-24  0:41 ` amodra at gmail dot com
@ 2024-04-24  4:54 ` xry111 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: xry111 at gcc dot gnu.org @ 2024-04-24  4:54 UTC (permalink / raw)
  To: gcc-bugs

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

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xry111 at gcc dot gnu.org

--- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
There was a GSoC project making the demangler non recursive in 2021, but it
unfortunately failed.  So with a recursive demangler this thing just happens...

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-24  4:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-24  0:36 [Bug demangler/114830] New: c++filt stack overflows in rust demangler amodra at gmail dot com
2024-04-24  0:39 ` [Bug demangler/114830] " amodra at gmail dot com
2024-04-24  0:41 ` amodra at gmail dot com
2024-04-24  4:54 ` xry111 at gcc dot gnu.org

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).