File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -485,6 +485,7 @@ def test_ar(self):
485485 s = '' .join ([ str (f (x )) for x in range (200 ) ])
486486 eq (s , "01233333333444444444444444444444444444444444444444444444444444444444444444444444444444444444444444445553333333344444444444444444444444444444444444444444444444444444444444444444444444444444444444444444" )
487487
488+ @support .skip_wasi_stack_overflow ()
488489 def test_security (self ):
489490 raises = self .assertRaises
490491 # Test for a dangerous expression
Original file line number Diff line number Diff line change @@ -2900,6 +2900,7 @@ def test_error_on_parser_stack_overflow(self):
29002900 compile (source , "<string>" , mode )
29012901
29022902 @support .cpython_only
2903+ @support .skip_wasi_stack_overflow ()
29032904 def test_deep_invalid_rule (self ):
29042905 # Check that a very deep invalid rule in the PEG
29052906 # parser doesn't have exponential backtracking.
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ _Py_EnterRecursiveCallUnchecked(PyThreadState *tstate)
364364# define Py_C_STACK_SIZE 1600000
365365#elif defined(__wasi__ )
366366 /* Web assembly has two stacks, so this isn't really the stack depth */
367- # define Py_C_STACK_SIZE 80000
367+ # define Py_C_STACK_SIZE 131072 // wasi-libc DEFAULT_STACK_SIZE
368368#elif defined(__hppa__ ) || defined(__powerpc64__ )
369369# define Py_C_STACK_SIZE 2000000
370370#else
You can’t perform that action at this time.
0 commit comments