This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d4389e
)
More paranoia.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 16 Aug 1999 19:14:37 +0000
(19:14 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 16 Aug 1999 19:14:37 +0000
(19:14 +0000)
p4raw-id: //depot/cfgperl@3996
sv.c
patch
|
blob
|
blame
|
history
diff --git
a/sv.c
b/sv.c
index
6524446
..
9ba9f6c
100644
(file)
--- 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;