This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

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


Hi,

On Tue, 22 Oct 2019, Umesh Kalappa wrote:

> We are bit confused with the subjected issue as stated by you in the
> last comment it's fixed in the gcc libiberty sources.
> 
> But Michael states that , its the expected behavior with given input
> (like many successive F's) .
> 
> Please, can you brief us , what fix went into it?

The "fix" in the demangler, if you want to call it that, is the 
introduction of an artificial limit on the nesting depth of templates, 
currently set to 2048.  It's a combination of revisions r266886, r267020 
and r270258 in the GCC svn repo.  The limit is active by default and you 
can disable it programmatically (and in objdump via -r).

So, recent objdump won't segfault on such names (and that way it's a fix 
for script kiddie CVEs), but on the other hand won't demangle such 
symbols at all (in that way it's not fix).


Ciao,
Michael.


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