PR demangler/80513 check for overflows and invalid characters in thunks
authorJonathan Wakely <jwakely@redhat.com>
Thu, 27 Apr 2017 09:44:28 +0000 (10:44 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 27 Apr 2017 09:44:28 +0000 (10:44 +0100)
commitde3b531c9aa93592f98ebd99c6b35be632e3c1b3
tree663a245b3b7b8a12f360f4e61851e6af2521dfde
parente77e24291b85bcb1ae1c7c48d8194a66ba642974
PR demangler/80513 check for overflows and invalid characters in thunks

PR demangler/80513
* cp-demangle.c (d_number): Check for overflow.
* cplus-dem.c (consume_count): Fix overflow check.
(gnu_special): Check for underscore after thunk delta.
* testsuite/demangle-expected: Add tests for overflows and invalid
characters in thunks.

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