Pull in patch for libiberty that fixes a stack exhaustion bug when demangling a patha...
authorNick Clifton <nickc@redhat.com>
Wed, 10 Apr 2019 14:49:36 +0000 (15:49 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 10 Apr 2019 14:49:36 +0000 (15:49 +0100)
commitc1202057eb9161a86af27d867703235fee7b7555
treec2e598f711cb9142e77d3c2d241cba0a2ff05601
parente9ad22ee5f0a40dfa1182ee68e3349dd72a42afe
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.
ChangeLog
libiberty/cp-demangle.c
This page took 0.024663 seconds and 4 git commands to generate.