Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11f6e69

Browse files
authored
Merge branch 'main' into multi_inputs
2 parentsa4f1769 +6ab4ace commit11f6e69

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

‎Lib/test/test_gettext.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ def test_ar(self):
485485
s=''.join([str(f(x))forxinrange(200) ])
486486
eq(s,"01233333333444444444444444444444444444444444444444444444444444444444444444444444444444444444444444445553333333344444444444444444444444444444444444444444444444444444444444444444444444444444444444444444")
487487

488+
@support.skip_wasi_stack_overflow()
488489
deftest_security(self):
489490
raises=self.assertRaises
490491
# Test for a dangerous expression

‎Lib/test/test_syntax.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
deftest_deep_invalid_rule(self):
29042905
# Check that a very deep invalid rule in the PEG
29052906
# parser doesn't have exponential backtracking.

‎Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ _Py_EnterRecursiveCallUnchecked(PyThreadState *tstate)
364364
# definePy_C_STACK_SIZE 1600000
365365
#elif defined(__wasi__)
366366
/* Web assembly has two stacks, so this isn't really the stack depth */
367-
# definePy_C_STACK_SIZE80000
367+
# definePy_C_STACK_SIZE131072 // wasi-libc DEFAULT_STACK_SIZE
368368
#elif defined(__hppa__)|| defined(__powerpc64__)
369369
# definePy_C_STACK_SIZE 2000000
370370
#else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp