mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
GH-114456: lower the recursion limit under WASI for debug builds (GH-114457)
Testing under wasmtime 16.0.0 w/ code from https://github.com/python/cpython/issues/114413 is how the value was found.
This commit is contained in:
parent
afe8f376c0
commit
f59f90b5bc
4 changed files with 13 additions and 6 deletions
|
@ -402,7 +402,9 @@ if has_c_implementation:
|
|||
check_unpickler(recurse(1), 32, 20)
|
||||
check_unpickler(recurse(20), 32, 20)
|
||||
check_unpickler(recurse(50), 64, 60)
|
||||
check_unpickler(recurse(100), 128, 140)
|
||||
if not (support.is_wasi and support.Py_DEBUG):
|
||||
# stack depth too shallow in pydebug WASI.
|
||||
check_unpickler(recurse(100), 128, 140)
|
||||
|
||||
u = unpickler(io.BytesIO(pickle.dumps('a', 0)),
|
||||
encoding='ASCII', errors='strict')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue