re PR c++/70926 (Libiberty Demangler segfaults (5))
authorMarcel Böhme <boehme.marcel@gmail.com>
Wed, 13 Jul 2016 22:06:09 +0000 (16:06 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 13 Jul 2016 22:06:09 +0000 (16:06 -0600)
commit03ef0c6c55ab81002abef62cec430d0496c3a01c
treeb3334406be855b82bcea51ddd6f1f9d92224b0b4
parent0d355cf973a80a3d15132ceabd55f6510f729d88
re PR c++/70926 (Libiberty Demangler segfaults (5))

PR c++/70926
* cplus-dem.c: Handle large values and overflow when demangling
length variables.
(demangle_template_value_parm): Read only until end of mangled string.
(do_hpacc_template_literal): Likewise.
(do_type): Handle overflow when demangling array indices.

From-SVN: r238313
libiberty/ChangeLog
libiberty/cplus-dem.c
libiberty/testsuite/demangle-expected