From: Jarkko Hietaniemi Date: Mon, 16 Aug 1999 19:14:37 +0000 (+0000) Subject: More paranoia. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=089c015b3a0d1c9d3f152ace22b1d60ce258b208;p=p5sagit%2Fp5-mst-13.2.git More paranoia. p4raw-id: //depot/cfgperl@3996 --- diff --git a/sv.c b/sv.c index 6524446..9ba9f6c 100644 --- a/sv.c +++ b/sv.c @@ -4709,7 +4709,10 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV char *eptr = Nullch; STRLEN elen = 0; - char ebuf[TYPE_DIGITS(IV) * 2 + 16]; + /* Times 4: a decimal digit takes more than 3 binary digits. + * NV_DIG: mantissa takes than many decimal digits. + * Plus 32: Playing safe. */ + char ebuf[IV_DIG * 4 + NV_DIG + 32]; /* large enough for "%#.#f" --chip */ /* what about long double NVs? --jhi */ char c;