An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31. There is a stack consumption problem caused by the cplus_demangle_type function making recursive calls to itself in certain scenarios involving many 'P' characters.
Created binutils tracking bugs for this issue:
Affects: fedora-all [bug 1652725]
Created mingw-binutils tracking bugs for this issue:
Affects: epel-all [bug 1652724]
This looks like yet another duplicated stack exhaustion flaw in libiberty.