diff options
| author | Christian Heimes <christian@python.org> | 2016-09-09 00:20:13 +0200 |
|---|---|---|
| committer | Christian Heimes <christian@python.org> | 2016-09-09 00:20:13 +0200 |
| commit | 884332b45a436a90c5a36c3d6288566fb7ce3456 (patch) | |
| tree | 923064fabcc0a4d388a388e3c84857bfe9bf9fec /Python/future.c | |
| parent | 7a5457b6878db61910c81017d10579edb7c91512 (diff) | |
| download | cpython-git-884332b45a436a90c5a36c3d6288566fb7ce3456.tar.gz | |
Add NULL check for gen->gi_code in gen_send_ex()
_PyGen_Finalize() checks that gen->gi_code is not NULL before it
accesses the flags of the code object. This means that the flag
could be NULL.
It passes down the generatore to gen_close() and gen_send_ex().
gen_send_ex() did not check for gen->gi_code != NULL.
CID 1297900
Diffstat (limited to 'Python/future.c')
0 files changed, 0 insertions, 0 deletions
