File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,10 @@ Set implementation specific option. The following options are available:
318
318
319
319
-X warn_default_encoding: enable opt-in EncodingWarning for 'encoding=None'
320
320
321
+ -X int_max_str_digits=number: limit the size of int<->str conversions.
322
+ This helps avoid denial of service attacks when parsing untrusted data.
323
+ The default is sys.int_info.default_max_str_digits. 0 disables.
324
+
321
325
.TP
322
326
.B \- x
323
327
Skip the first line of the source. This is intended for a DOS
@@ -487,6 +491,11 @@ values.
487
491
488
492
The integer must be a decimal number in the range [0,4294967295]. Specifying
489
493
the value 0 will disable hash randomization.
494
+ .IP PYTHONINTMAXSTRDIGITS
495
+ Limit the maximum digit characters in an int value
496
+ when converting from a string and when converting an int back to a str.
497
+ A value of 0 disables the limit. Conversions to or from bases 2, 4, 8,
498
+ 16, and 32 are never limited.
490
499
.IP PYTHONMALLOC
491
500
Set the Python memory allocators and/or install debug hooks. The available
492
501
memory allocators are
You can’t perform that action at this time.
0 commit comments