[Python-checkins] [3.9] gh-95778: add doc missing in some places (GH-100627). (#101066)

ambv webhook-mailer at python.org
Fri Jan 20 17:21:06 EST 2023


https://github.com/python/cpython/commit/6be2e0e24714fcb69417dad91a1643b0d4063565
commit: 6be2e0e24714fcb69417dad91a1643b0d4063565
branch: 3.9
author: Éric <earaujo at caravan.coop>
committer: ambv <lukasz at langa.pl>
date: 2023-01-20T23:21:00+01:00
summary:

[3.9] gh-95778: add doc missing in some places (GH-100627). (#101066)

(cherry picked from commit 46521826cb1883e29e4640f94089dd92c57efc5b)

Co-authored-by: Éric <earaujo at caravan.coop>

files:
M Misc/python.man

diff --git a/Misc/python.man b/Misc/python.man
index 225376574a26..fce2bdf49304 100644
--- a/Misc/python.man
+++ b/Misc/python.man
@@ -308,6 +308,11 @@ Set implementation specific option. The following options are available:
 
     -X pycache_prefix=PATH: enable writing .pyc files to a parallel tree rooted at the
          given directory instead of to the code tree.
+
+    -X int_max_str_digits=number: limit the size of int<->str conversions.
+       This helps avoid denial of service attacks when parsing untrusted data.
+       The default is sys.int_info.default_max_str_digits.  0 disables.
+
 .TP
 .B \-x
 Skip the first line of the source.  This is intended for a DOS
@@ -477,6 +482,11 @@ values.
 
 The integer must be a decimal number in the range [0,4294967295].  Specifying
 the value 0 will disable hash randomization.
+.IP PYTHONINTMAXSTRDIGITS
+Limit the maximum digit characters in an int value
+when converting from a string and when converting an int back to a str.
+A value of 0 disables the limit.  Conversions to or from bases 2, 4, 8,
+16, and 32 are never limited.
 .IP PYTHONMALLOC
 Set the Python memory allocators and/or install debug hooks. The available
 memory allocators are



More information about the Python-checkins mailing list