]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-98925: Lower marshal recursion depth for WASI (GH-98938) (GH-98979)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 1 Nov 2022 23:18:55 +0000 (16:18 -0700)
committerGitHub <noreply@github.com>
Tue, 1 Nov 2022 23:18:55 +0000 (16:18 -0700)
commit39e0627b779ad03b11caa3108d57b8adcba50acf
treefe5349d95f5c12ba23b8d2203aa0eccbce289db2
parentcd6655a8589e99ae4088b3bed4a692a19ed48779
[3.11] gh-98925: Lower marshal recursion depth for WASI (GH-98938) (GH-98979)

* gh-98925: Lower marshal recursion depth for WASI (GH-98938)

For wasmtime 2.0, the stack depth cost is 6% higher. This causes the default max `marshal` recursion depth to blow the stack.

As the default marshal depth is 2000 and Windows is set to 1000, split the difference and choose 1500 for WASI to be safe.
(cherry picked from commit 9711265182f163ba381e7800e3748ac28710f9ef)

Co-authored-by: Brett Cannon <brett@python.org>
.gitignore
Lib/test/test_marshal.py
Misc/NEWS.d/next/Core and Builtins/2022-10-31-18-03-10.gh-issue-98925.zpdjVd.rst [new file with mode: 0644]
Python/marshal.c