From 6f5b0cda8acb5bc9168c1a704ee9a4f782787dfc Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Fri, 12 May 2006 20:00:37 +0000 Subject: [PATCH] merge from gcc --- libiberty/ChangeLog | 5 +++++ libiberty/cplus-dem.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 76baa3c3ac..ef48f8609b 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2006-05-12 Anton Blanchard + + * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to + hold "int%u_t". + 2006-04-24 Julian Brown * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case. diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 8b60434a88..1f8b1fc31e 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; -- 2.11.0