[Bug demangler/80513] demangler walks past trailing nul in mangled name in a bunch of cases
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 27 09:45:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80513
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Apr 27 09:44:28 2017
New Revision: 247300
URL: https://gcc.gnu.org/viewcvs?rev=247300&root=gcc&view=rev
Log:
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.
Modified:
trunk/libiberty/ChangeLog
trunk/libiberty/cp-demangle.c
trunk/libiberty/cplus-dem.c
trunk/libiberty/testsuite/demangle-expected
More information about the Gcc-bugs
mailing list