]> granicus.if.org Git - php/commit
Fix bug #78752
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 28 Oct 2019 09:23:20 +0000 (10:23 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 28 Oct 2019 09:27:32 +0000 (10:27 +0100)
commit16c49108763db251151b350e433dde6d1a076250
treef9b2f85035a0fa2835c8730d27a892c96a081201
parent52499938142351d20a46c2b941e957ab0d618109
Fix bug #78752

NULL out the execute_data before destroying it, otherwise GC may
trigger while the execute_data is partially destroyed, resulting
in double-frees.

The handling of call stack unfreezing is a bit awkward because it's
a ZEND_API function, so we can't change the signature.
NEWS
Zend/tests/bug78752.phpt [new file with mode: 0644]
Zend/zend_generators.c