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
Python.asdl -rw-r--r-- 5.2 KB
asdl.py -rw-r--r-- 12.7 KB
asdl_c.py -rwxr-xr-x 50.4 KB
myreadline.c -rw-r--r-- 11.6 KB
parser.c -rw-r--r-- 837.9 KB
peg_api.c -rw-r--r-- 2.2 KB
pegen.c -rw-r--r-- 61.4 KB
pegen.h -rw-r--r-- 9.9 KB
string_parser.c -rw-r--r-- 38.5 KB
string_parser.h -rw-r--r-- 1.8 KB
token.c -rw-r--r-- 4.5 KB
tokenizer.c -rw-r--r-- 56.9 KB
tokenizer.h -rw-r--r-- 3.8 KB

back to top