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 /ChangeLog | |
parent | e9ad22ee5f0a40dfa1182ee68e3349dd72a42afe (diff) | |
download | binutils-gdb-c1202057eb9161a86af27d867703235fee7b7555.tar.gz |
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 'ChangeLog')
-rw-r--r-- | ChangeLog | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index cd631a15b61..4df3aaa62ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2019-04-10 Nick Clifton <nickc@redhat.com> + + * libiberty: Sync with gcc. Bring in: + 2019-04-10 Nick Clifton <nickc@redhat.com> + + 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. + 2018-06-24 Nick Clifton <nickc@redhat.com> 2.32 branch created. |