diff options
author | Tony Cook <tony@develop-help.com> | 2019-03-20 16:47:49 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2019-06-03 15:48:34 +1000 |
commit | 027471cf1095f75f273df40310e4647fe1e8a9df (patch) | |
tree | 89b9ed1dd6b13f4b6e659c7d7cacc116cc31e0f3 /pod/perldiag.pod | |
parent | 755e4cab247c77c4da8b4c33eaf69b119dfbefb7 (diff) | |
download | perl-027471cf1095f75f273df40310e4647fe1e8a9df.tar.gz |
(perl #133913) limit numeric format results to INT_MAX
The return value of v?snprintf() is int, and we pay attention to that
return value, so limit the expected size of numeric formats to
INT_MAX.
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 1037215d44..166d29b4bb 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -4354,6 +4354,12 @@ the meantime, try using scientific notation (e.g. "1e6" instead of a number. This happens, for example with C<\o{}>, with no number between the braces. +=item Numeric format result too large + +(F) The length of the result of a numeric format supplied to sprintf() +or printf() would have been too large for the underlying C function to +report. This limit is typically 2GB. + =item Octal number > 037777777777 non-portable (W portable) The octal number you specified is larger than 2**32-1 |