]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-22851: Fix a segfault when accessing generator.gi_frame.f_restricted. ...
authorZackery Spytz <zspytz@gmail.com>
Sat, 13 Oct 2018 09:25:05 +0000 (03:25 -0600)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 13 Oct 2018 09:25:05 +0000 (12:25 +0300)
commit68ddb59417ee0b0dedf5c8b66a304138c9ce0a63
treea15f930fb5826ff7dc49dbaabdc23a2fa31f3bc7
parent6198976ec807cf3b658e902fd63db88a3ac99b8c
[2.7] bpo-22851: Fix a segfault when accessing generator.gi_frame.f_restricted. (GH-9348)

Frame's field f_tstate is NULL when the generator is exhausted.
Include/frameobject.h
Lib/test/test_generators.py
Misc/NEWS.d/next/Core and Builtins/2018-09-17-04-41-42.bpo-22851.0hsJPh.rst [new file with mode: 0644]