diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-10-05 00:55:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 00:55:57 +0300 |
commit | 9ece9cd65cdeb0a1f6e60475bbd0219161c348ac (patch) | |
tree | 0ed869df28102785bfbb38ae7178aac48c1672bb /Python/errors.c | |
parent | 619f98045d73859688e5cfdb946d183e6d493a64 (diff) | |
download | cpython-git-9ece9cd65cdeb0a1f6e60475bbd0219161c348ac.tar.gz |
bpo-41909: Enable previously disabled recursion checks. (GH-22536)
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.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions