diff options
author | Nick Clifton <nickc@redhat.com> | 2019-04-10 15:49:36 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-04-10 15:49:36 +0100 |
commit | c1202057eb9161a86af27d867703235fee7b7555 (patch) | |
tree | c2e598f711cb9142e77d3c2d241cba0a2ff05601 /elfcpp | |
parent | e9ad22ee5f0a40dfa1182ee68e3349dd72a42afe (diff) | |
download | gdb-c1202057eb9161a86af27d867703235fee7b7555.zip gdb-c1202057eb9161a86af27d867703235fee7b7555.tar.gz gdb-c1202057eb9161a86af27d867703235fee7b7555.tar.bz2 |
Pull in patch for libiberty that fixes a stack exhaustion bug when demangling a pathalogically constructed mangled name.
PR 89394
* cp-demangle.c (cplus_demangle_fill_name): Reject negative
lengths.
(d_count_templates_scopes): Replace num_templates and num_scopes
parameters with a struct d_print_info pointer parameter. Adjust
body of the function accordingly. Add recursion counter and check
that the recursion limit is not reached.
(d_print_init): Pass dpi parameter to d_count_templates_scopes.
Reset recursion counter afterwards, unless the recursion limit was
reached.
Diffstat (limited to 'elfcpp')
0 files changed, 0 insertions, 0 deletions