summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-09-27 09:34:44 +0300
committerGitHub <noreply@github.com>2017-09-27 09:34:44 +0300
commit02c3cdcef84edd8c71e9fe189873dea216acfc1d (patch)
treee633c37492d35a475f8e224369948d602d633e3d /Python/bltinmodule.c
parent680429b133660d170269565413f4c9e36e68def6 (diff)
downloadcpython-git-02c3cdcef84edd8c71e9fe189873dea216acfc1d.tar.gz
[3.6] bpo-25532: Protect against infinite loops in inspect.unwrap() (GH-1717) (#3778)
Some objects (like test mocks) auto-generate new objects on attribute access, which can lead to an infinite loop in inspect.unwrap(). Ensuring references are retained to otherwise temporary objects and capping the size of the memo dict turns this case into a conventional exception instead.. (cherry picked from commit f9169ce6b48c7cc7cc62d9eb5e4ee1ac7066d14b)
Diffstat (limited to 'Python/bltinmodule.c')
0 files changed, 0 insertions, 0 deletions