summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-08-16 19:14:37 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-16 19:14:37 +0000
commit089c015b3a0d1c9d3f152ace22b1d60ce258b208 (patch)
tree100483822ea414b0a9f41936bdbeb01e6fe5cc91 /sv.c
parent2d4389e49f01a9fd18e4d854b4d31048551328b6 (diff)
downloadperl-089c015b3a0d1c9d3f152ace22b1d60ce258b208.tar.gz
More paranoia.
p4raw-id: //depot/cfgperl@3996
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 6524446711..9ba9f6cb15 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;