diff options
author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-05 22:14:16 +0000 |
---|---|---|
committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-05 22:14:16 +0000 |
commit | c960ca50b931840ef8c8dc3a2838c4cb00c8a36e (patch) | |
tree | b7f3081d285a36da657ab5ef1f9eb7fb5ccf5857 /libiberty/cp-demangle.c | |
parent | d51c4d4c9d643b05450ee86d0949e4dadd6530f3 (diff) | |
download | gcc-c960ca50b931840ef8c8dc3a2838c4cb00c8a36e.tar.gz |
* cp-demangle.c (cplus_demangle_type): Return NULL if the
character following a 'D' cannot be recognised.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143098 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r-- | libiberty/cp-demangle.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index 5ae04c068f1..aa36db6bc62 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -2131,6 +2131,9 @@ cplus_demangle_type (struct d_info *di) peek = d_next_char (di); ret->u.s_fixed.sat = (peek == 's'); break; + + default: + return NULL; } break; |