File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,11 @@ Set implementation specific option. The following options are available:
308
308
309
309
-X pycache_prefix=PATH: enable writing .pyc files to a parallel tree rooted at the
310
310
given directory instead of to the code tree.
311
+
312
+ -X int_max_str_digits=number: limit the size of int<->str conversions.
313
+ This helps avoid denial of service attacks when parsing untrusted data.
314
+ The default is sys.int_info.default_max_str_digits. 0 disables.
315
+
311
316
.TP
312
317
.B \- x
313
318
Skip the first line of the source. This is intended for a DOS
@@ -477,6 +482,11 @@ values.
477
482
478
483
The integer must be a decimal number in the range [0,4294967295]. Specifying
479
484
the value 0 will disable hash randomization.
485
+ .IP PYTHONINTMAXSTRDIGITS
486
+ Limit the maximum digit characters in an int value
487
+ when converting from a string and when converting an int back to a str.
488
+ A value of 0 disables the limit. Conversions to or from bases 2, 4, 8,
489
+ 16, and 32 are never limited.
480
490
.IP PYTHONMALLOC
481
491
Set the Python memory allocators and/or install debug hooks. The available
482
492
memory allocators are
You can’t perform that action at this time.
0 commit comments