Staging
v0.8.1
https://github.com/python/cpython
Revision 9ece9cd65cdeb0a1f6e60475bbd0219161c348ac authored by Serhiy Storchaka on 04 October 2020, 21:55:57 UTC, committed by GitHub on 04 October 2020, 21:55:57 UTC
Enable recursion checks which were disabled when get __bases__ of
non-type objects in issubclass() and isinstance() and when intern
strings. It fixes a stack overflow when getting __bases__ leads
to infinite recursion.

Originally recursion checks was disabled for PyDict_GetItem() which
silences all errors including the one raised in case of detected
recursion and can return incorrect result. But now the code uses
PyDict_GetItemWithError() and PyDict_SetDefault() instead.
1 parent 619f980
History
Tip revision: 9ece9cd65cdeb0a1f6e60475bbd0219161c348ac authored by Serhiy Storchaka on 04 October 2020, 21:55:57 UTC
bpo-41909: Enable previously disabled recursion checks. (GH-22536)
Tip revision: 9ece9cd
File Mode Size
windows-release
ci.yml -rw-r--r-- 2.6 KB
docs-steps.yml -rw-r--r-- 1.3 KB
macos-steps.yml -rw-r--r-- 768 bytes
posix-deps-apt.sh -rwxr-xr-x 590 bytes
posix-steps.yml -rw-r--r-- 2.6 KB
pr.yml -rw-r--r-- 2.6 KB
prebuild-checks.yml -rw-r--r-- 1.2 KB
windows-layout-steps.yml -rw-r--r-- 1.5 KB
windows-release.yml -rw-r--r-- 3.9 KB
windows-steps.yml -rw-r--r-- 1.5 KB

back to top