diff options
author | Nick Clifton <nickc@redhat.com> | 2019-04-10 14:44:47 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2019-04-10 14:44:47 +0000 |
commit | 6fe6bd7c0860961bfa4a705974bce6b9ec31edeb (patch) | |
tree | ffe13bde53d3a688b5321c1af99e90eaa4decf14 /gcc/tree-vect-data-refs.c | |
parent | 07c2fa4665510267112030d500d7b1b7c0f4364e (diff) | |
download | gcc-6fe6bd7c0860961bfa4a705974bce6b9ec31edeb.zip gcc-6fe6bd7c0860961bfa4a705974bce6b9ec31edeb.tar.gz gcc-6fe6bd7c0860961bfa4a705974bce6b9ec31edeb.tar.bz2 |
Fix a stack exhaustion bug in libiberty's demangler when decoding 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.
From-SVN: r270258
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
0 files changed, 0 insertions, 0 deletions