summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorÉric <earaujo@caravan.coop>2022-12-30 21:21:15 (GMT)
committerGitHub <noreply@github.com>2022-12-30 21:21:15 (GMT)
commit46521826cb1883e29e4640f94089dd92c57efc5b (patch)
treecf6e466a674e73c5fb8f339383776e7e033faa19 /Misc
parentf4fcfdf8c593611f98b9358cc0c5604c15306465 (diff)
downloadcpython-46521826cb1883e29e4640f94089dd92c57efc5b.zip
cpython-46521826cb1883e29e4640f94089dd92c57efc5b.tar.gz
cpython-46521826cb1883e29e4640f94089dd92c57efc5b.tar.bz2
gh-95778: add doc missing in some places (GH-100627)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/python.man9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/python.man b/Misc/python.man
index 1705eeb..bf7cf76 100644
--- a/Misc/python.man
+++ b/Misc/python.man
@@ -358,6 +358,10 @@ Set implementation-specific option. The following options are available:
-X frozen_modules=[on|off]: whether or not frozen modules should be used.
The default is "on" (or "off" if you are running a local build).
+ -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
@@ -531,6 +535,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