cp-demangle.c (cplus_demangle_type): Return NULL if the character following a 'D' cannot be recognised.

* cp-demangle.c (cplus_demangle_type): Return NULL if the
	character following a 'D' cannot be recognised.

From-SVN: r143098
This commit is contained in:
Ben Elliston 2009-01-05 22:14:16 +00:00 committed by Ben Elliston
parent 7b10257fdd
commit 381009fe75
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-01-06 Ben Elliston <bje@au.ibm.com>
* cp-demangle.c (cplus_demangle_type): Return NULL if the
character following a 'D' cannot be recognised.
2008-12-18 Jason Merrill <jason@redhat.com>
PR c++/38561

View File

@ -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;