diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-16 19:14:37 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-16 19:14:37 +0000 |
commit | 089c015b3a0d1c9d3f152ace22b1d60ce258b208 (patch) | |
tree | 100483822ea414b0a9f41936bdbeb01e6fe5cc91 /sv.c | |
parent | 2d4389e49f01a9fd18e4d854b4d31048551328b6 (diff) | |
download | perl-089c015b3a0d1c9d3f152ace22b1d60ce258b208.tar.gz |
More paranoia.
p4raw-id: //depot/cfgperl@3996
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |