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 @@ -2928,6 +2928,7 @@ def test_error_on_parser_stack_overflow(self):
2928
2928
compile (source , "<string>" , mode )
2929
2929
2930
2930
@support .cpython_only
2931
+ @support .skip_wasi_stack_overflow ()
2931
2932
def test_deep_invalid_rule (self ):
2932
2933
# Check that a very deep invalid rule in the PEG
2933
2934
# 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