]> granicus.if.org Git - php/commit
Fix argument unpacking across stack pages
authorNikita Popov <nikic@php.net>
Sat, 18 Jan 2014 11:30:44 +0000 (12:30 +0100)
committerNikita Popov <nikic@php.net>
Sat, 18 Jan 2014 13:41:33 +0000 (14:41 +0100)
commit31a2ac470cba47a396a9b6c815700fbec51c6032
treefa08a2813b76216e94ddce83d9dbac75d2fb0f14
parent8ff4d61f0864fbca7b2905f14de76fd400d9b3df
Fix argument unpacking across stack pages

If multiple unpacks were used (or mixed with normal arguments)
parts of the arguments could land on different stack pages. If
this occurs the arguments will now be copied to a new stack page.

The code used to do this is copied verbatim from the PHP 5.4 branch
and only modified to reduce the amount of inlined code.
Zend/tests/arg_unpack/many_args.phpt [new file with mode: 0644]
Zend/zend_execute.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h