Skip to content

Commit d68cc3b

Browse files
committed
1 parent 898e6b3 commit d68cc3b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Diff for: Lib/test/test_gettext.py

+1
Original file line numberDiff line numberDiff 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

Diff for: Lib/test/test_syntax.py

+1
Original file line numberDiff line numberDiff line change
@@ -2928,6 +2928,7 @@ def test_error_on_parser_stack_overflow(self):
29282928
compile(source, "<string>", mode)
29292929

29302930
@support.cpython_only
2931+
@support.skip_wasi_stack_overflow()
29312932
def test_deep_invalid_rule(self):
29322933
# Check that a very deep invalid rule in the PEG
29332934
# parser doesn't have exponential backtracking.

Diff for: Python/ceval.c

+1-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)