summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-12 19:44:29 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-12 19:44:29 +0000
commit542b3a021df307fb15c8577bfaf72334b6e68553 (patch)
treed5561a7d5628237d4a59c828cce77e1c74623a91 /libiberty
parentd5608dc4aeed804afc8f0938097a5c648c4a4e08 (diff)
downloadgcc-542b3a021df307fb15c8577bfaf72334b6e68553.tar.gz
* cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
hold "int%u_t". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113728 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/cplus-dem.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 76baa3c3ac2..ef48f8609bc 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -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.
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index 8b60434a888..1f8b1fc31e4 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -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;