cplus-dem.c (demangle_fund_type): Ensure buf is large enough to hold "int%u_t".

* cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
hold "int%u_t".

From-SVN: r113728
This commit is contained in:
Anton Blanchard 2006-05-12 19:44:29 +00:00 committed by DJ Delorie
parent 651a36e333
commit 824bceb033
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-05-12 Anton Blanchard <anton@samba.org>
* cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
hold "int%u_t".
2006-04-24 Julian Brown <julian@codesourcery.com>
* floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.

View File

@ -3693,7 +3693,7 @@ demangle_fund_type (struct work_stuff *work,
{
int done = 0;
int success = 1;
char buf[10];
char buf[INTBUF_SIZE + 5 /* 'int%u_t' */];
unsigned int dec = 0;
type_kind_t tk = tk_integral;