]> granicus.if.org Git - php/commit
Fix #78761: Zend memory heap corruption with preload and casting
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 30 Oct 2019 17:05:10 +0000 (18:05 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 30 Oct 2019 18:49:39 +0000 (19:49 +0100)
commit0055f1e3dc7ec27778d6d3bd22404319b3ceeeca
tree119fc61ce62949a7690aa364415fa3c5e23d157c
parent1e2d3d58a8b392385d926bdca11ba0a0bc2547b4
Fix #78761: Zend memory heap corruption with preload and casting

We have to reset `FFI_G(persistent)` back to zero when preloading has
finished.
NEWS
ext/ffi/ffi.c
ext/ffi/tests/bug78761.phpt [new file with mode: 0644]
ext/ffi/tests/bug78761_preload.h [new file with mode: 0644]
ext/ffi/tests/bug78761_preload.php [new file with mode: 0644]