cp-demangle.c (d_encoding): Guard against NULL return values from d_right (dc).
authorBen L <bobsayshilol@live.co.uk>
Tue, 30 Apr 2019 14:20:11 +0000 (14:20 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 30 Apr 2019 14:20:11 +0000 (08:20 -0600)
commit927e42fd52ed7dee859ac85fec9dd6830d769773
treec503ba148f17eb8c431e94bde3d3bef0e66c0d3f
parent5bcc5a3b28d56bff2c70e5f52ce25f2cd7ee055e
cp-demangle.c (d_encoding): Guard against NULL return values from d_right (dc).

     * cp-demangle.c (d_encoding): Guard against NULL return values from
     d_right (dc).
     * testsuite/demangle-expected: Add testcase.

From-SVN: r270694
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected