This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/19597] Buffer Overflow during Demangling


https://sourceware.org/bugzilla/show_bug.cgi?id=19597

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
With current master, I get:

 $ gdb -ex "demangle -l c++
__020A___________________X00020A___R0020A__U000R03000N99999999_020A__K000"
GNU gdb (GDB) 7.12.50.20160808-git
 [...]
 /home/pedro/gdb/mygit/src/gdb/utils.c:1096: internal-error: virtual memory
exhausted: can't allocate 2147483647 bytes.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) 

(and it takes quite a bit to reach that.)

Is this expected?  AFAICS, the relevant patches mentioned in gcc PR69687 have
been merged to gdb/binutils master already.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]