diff options
author | Éric <earaujo@caravan.coop> | 2023-02-08 05:06:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 11:06:21 +0100 |
commit | 41d301ae2c564afff786b7dcd5919212106e7c4f (patch) | |
tree | 737ada1bcd40e741c269ce2440b94677f3f6c6d6 | |
parent | db924a46d754bac6b8debffc3d9f3e9b67cbb884 (diff) | |
download | cpython-git-41d301ae2c564afff786b7dcd5919212106e7c4f.tar.gz |
[3.8] gh-95778: add doc missing in some places (GH-100627) (#101630)
(cherry picked from commit 46521826cb1883e29e4640f94089dd92c57efc5b)
-rw-r--r-- | Misc/python.man | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Misc/python.man b/Misc/python.man index fa5d79996e..770a7ed403 100644 --- a/Misc/python.man +++ b/Misc/python.man @@ -312,6 +312,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 @@ -479,6 +484,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 |