]> granicus.if.org Git - php/commit
Fix bug #63173: Crash when invoking invalid array callback
authorNikita Popov <nikic@php.net>
Thu, 27 Sep 2012 16:40:00 +0000 (18:40 +0200)
committerNikita Popov <nikic@php.net>
Thu, 27 Sep 2012 16:40:00 +0000 (18:40 +0200)
commit592b232e834ed2698fa97ad4dd58e5ab21f257be
tree18b64312b6f5591c1c4e90ca61065ca331f7c782
parent8cdd6bc1e7dedd4733374b62feb09b88c5ca02db
Fix bug #63173: Crash when invoking invalid array callback

The code did not check whether the zend_hash_index_find calls succeded,
so PHP crashed when an array callback was called that contains two elements
which don't have the indices 0 and 1.
Zend/tests/bug63173.phpt [new file with mode: 0644]
Zend/zend_vm_def.h
Zend/zend_vm_execute.h