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):
485
485
s = '' .join ([ str (f (x )) for x in range (200 ) ])
486
486
eq (s , "01233333333444444444444444444444444444444444444444444444444444444444444444444444444444444444444444445553333333344444444444444444444444444444444444444444444444444444444444444444444444444444444444444444" )
487
487
488
+ @support .skip_wasi_stack_overflow ()
488
489
def test_security (self ):
489
490
raises = self .assertRaises
490
491
# 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):
2900
2900
compile (source , "<string>" , mode )
2901
2901
2902
2902
@support .cpython_only
2903
+ @support .skip_wasi_stack_overflow ()
2903
2904
def test_deep_invalid_rule (self ):
2904
2905
# Check that a very deep invalid rule in the PEG
2905
2906
# parser doesn't have exponential backtracking.
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ _Py_EnterRecursiveCallUnchecked(PyThreadState *tstate)
364
364
# define Py_C_STACK_SIZE 1600000
365
365
#elif defined(__wasi__ )
366
366
/* 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
368
368
#elif defined(__hppa__ ) || defined(__powerpc64__ )
369
369
# define Py_C_STACK_SIZE 2000000
370
370
#else
You can’t perform that action at this time.
0 commit comments