Skip to content

Commit 41d301a

Browse files
authored
[3.8] gh-95778: add doc missing in some places (GH-100627) (#101630)
(cherry picked from commit 4652182)
1 parent db924a4 commit 41d301a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Misc/python.man

+10
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ Set implementation specific option. The following options are available:
312312

313313
-X pycache_prefix=PATH: enable writing .pyc files to a parallel tree rooted at the
314314
given directory instead of to the code tree.
315+
316+
-X int_max_str_digits=number: limit the size of int<->str conversions.
317+
This helps avoid denial of service attacks when parsing untrusted data.
318+
The default is sys.int_info.default_max_str_digits. 0 disables.
319+
315320
.TP
316321
.B \-x
317322
Skip the first line of the source. This is intended for a DOS
@@ -479,6 +484,11 @@ values.
479484

480485
The integer must be a decimal number in the range [0,4294967295]. Specifying
481486
the value 0 will disable hash randomization.
487+
.IP PYTHONINTMAXSTRDIGITS
488+
Limit the maximum digit characters in an int value
489+
when converting from a string and when converting an int back to a str.
490+
A value of 0 disables the limit. Conversions to or from bases 2, 4, 8,
491+
16, and 32 are never limited.
482492
.IP PYTHONMALLOC
483493
Set the Python memory allocators and/or install debug hooks. The available
484494
memory allocators are

0 commit comments

Comments
 (0)