diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-13 17:09:24 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-13 18:22:14 +0200 |
commit | 4226c8247f5ba8ade3228581bd313fa5692ef4ad (patch) | |
tree | 2de0dd0380087600d118550ca21343817e6ae628 /sapi/phpdbg/phpdbg.c | |
parent | c25104bb5b511c39cff279293e6ef4aaa74c9eb6 (diff) | |
download | php-git-4226c8247f5ba8ade3228581bd313fa5692ef4ad.tar.gz |
Fix use-after-free in assign-ref compilation
zend_emit_op_data may reallocate the op_array, so the assignment
of the RETURNS_FUNCTION flag may happen on an outdated opline.
Restructure the code a bit to set the flag before calling
zend_emit_op_data().
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
0 files changed, 0 insertions, 0 deletions