diff options
author | Éric <earaujo@caravan.coop> | 2023-01-21 09:10:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-21 09:10:57 (GMT) |
commit | c77b0ce186d86ceff352795a6cfdb82721e6f0fc (patch) | |
tree | 655bf790e7b3ed18ac5969bbf5f3c7093eca81d3 | |
parent | 6919c36541a141ee6d98d36fda2aa9f2c3b3ac5f (diff) | |
download | cpython-c77b0ce186d86ceff352795a6cfdb82721e6f0fc.zip cpython-c77b0ce186d86ceff352795a6cfdb82721e6f0fc.tar.gz cpython-c77b0ce186d86ceff352795a6cfdb82721e6f0fc.tar.bz2 |
[3.10] gh-95778: add doc missing in some places (GH-100627). (#101065)
(cherry picked from commit 46521826cb1883e29e4640f94089dd92c57efc5b)
Co-authored-by: Éric <earaujo@caravan.coop>
-rw-r--r-- | Misc/python.man | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/python.man b/Misc/python.man index 6b21fdc..af90747 100644 --- a/Misc/python.man +++ b/Misc/python.man @@ -318,6 +318,10 @@ Set implementation specific option. The following options are available: -X warn_default_encoding: enable opt-in EncodingWarning for 'encoding=None' + -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 @@ -487,6 +491,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 |