Staging
v0.5.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
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
m4
.gitattributes -rw-r--r-- 1.7 KB
.gitignore -rw-r--r-- 1.8 KB
.travis.yml -rw-r--r-- 8.4 KB
CODE_OF_CONDUCT.md -rw-r--r-- 630 bytes
LICENSE -rw-r--r-- 13.6 KB
Makefile.pre.in -rw-r--r-- 67.7 KB
README.rst -rw-r--r-- 10.0 KB
aclocal.m4 -rw-r--r-- 13.1 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 500.3 KB
configure.ac -rw-r--r-- 169.2 KB
install-sh -rwxr-xr-x 15.0 KB
netlify.toml -rw-r--r-- 82 bytes
pyconfig.h.in -rw-r--r-- 44.4 KB
setup.py -rw-r--r-- 108.6 KB

README.rst

back to top