From c960ca50b931840ef8c8dc3a2838c4cb00c8a36e Mon Sep 17 00:00:00 2001 From: bje Date: Mon, 5 Jan 2009 22:14:16 +0000 Subject: * 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 --- libiberty/ChangeLog | 5 +++++ libiberty/cp-demangle.c | 3 +++ 2 files changed, 8 insertions(+) (limited to 'libiberty') diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index f46fe05f379..ef174108ce1 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2009-01-06 Ben Elliston + + * cp-demangle.c (cplus_demangle_type): Return NULL if the + character following a 'D' cannot be recognised. + 2008-12-18 Jason Merrill PR c++/38561 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; -- cgit v1.2.1