summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-09-13 17:09:24 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-09-13 18:22:14 +0200
commit4226c8247f5ba8ade3228581bd313fa5692ef4ad (patch)
tree2de0dd0380087600d118550ca21343817e6ae628 /sapi/phpdbg/phpdbg.c
parentc25104bb5b511c39cff279293e6ef4aaa74c9eb6 (diff)
downloadphp-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