php-src/ext/zend_test
Niels Dossche eb8c3cb79a
Fix GH-14741: Segmentation fault in Zend/zend_types.h
The create_obj handler of InternalIterator is overwritten, but not the
clone_obj handler. This is not allowed.
In PHP 8.2 this didn't cause a segfault because the standard object
handler was used for the clone instead of the internal handler.
So then it allocates and frees the object using the standard object handlers.
In 8.3 however, the object is created using the standard object handler and
freed using the custom handler, resulting in the buffer overflow.
Even though bisect points to 1e1ea4f this only reveals the bug.

Closes GH-14882.
2024-07-09 00:56:53 +02:00
..
tests Fix GH-14741: Segmentation fault in Zend/zend_types.h 2024-07-09 00:56:53 +02:00
config.m4 adds failing test case for #12060 2023-09-05 10:23:22 +01:00
config.w32 adds failing test case for #12060 2023-09-05 10:23:22 +01:00
fiber_arginfo.h Add support for validation of missing class synopses (#9472) 2022-09-05 14:21:15 +02:00
fiber.c Revert "Port all internally used classes to use default_object_handlers" 2022-09-14 11:13:23 +02:00
fiber.h Flexible fiber bailout handling (#7163) 2021-06-18 11:01:10 -05:00
fiber.stub.php Add support for validation of missing class synopses (#9472) 2022-09-05 14:21:15 +02:00
iterators_arginfo.h adds failing test case for #12060 2023-09-05 10:23:22 +01:00
iterators.c adds failing test case for #12060 2023-09-05 10:23:22 +01:00
iterators.h adds failing test case for #12060 2023-09-05 10:23:22 +01:00
iterators.stub.php adds failing test case for #12060 2023-09-05 10:23:22 +01:00
observer.c Always load EX(opline) into the current frame in JIT when observers are enabled 2024-04-08 15:09:14 +02:00
observer.h Fix memory_leak in zend_test 2022-07-30 15:57:08 +00:00
php_test.h Merge branch 'PHP-8.1' into PHP-8.2 2023-11-25 00:59:26 +01:00
test_arginfo.h Fix is_zend_ptr() for huge blocks (#14626) 2024-06-25 15:14:00 +02:00
test.c Fix is_zend_ptr() for huge blocks (#14626) 2024-06-25 15:14:00 +02:00
test.h Add support for generating namespaced constant 2023-02-23 10:05:30 +01:00
test.stub.php Fix is_zend_ptr() for huge blocks (#14626) 2024-06-25 15:14:00 +02:00