File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ PHP NEWS
33
33
. Fixed bug GH-19098 (libxml<2.13 segmentation fault caused by
34
34
php_libxml_node_free). (nielsdos)
35
35
36
+ - Opcache:
37
+ . Reset global pointers to prevent use-after-free in zend_jit_status().
38
+ (Florian Engelhardt)
39
+
36
40
- OpenSSL:
37
41
. Fixed bug GH-18986 (OpenSSL backend: incorrect RAND_{load,write}_file()
38
42
return value check). (nielsdos, botovq)
Original file line number Diff line number Diff line change @@ -3717,6 +3717,14 @@ void zend_jit_shutdown(void)
3717
3717
#else
3718
3718
zend_jit_trace_free_caches (& jit_globals );
3719
3719
#endif
3720
+
3721
+ /* Reset global pointers to prevent use-after-free in `zend_jit_status()`
3722
+ * after gracefully restarting Apache with mod_php, see:
3723
+ * https://github.com/php/php-src/pull/19212 */
3724
+ dasm_ptr = NULL ;
3725
+ dasm_buf = NULL ;
3726
+ dasm_end = NULL ;
3727
+ dasm_size = 0 ;
3720
3728
}
3721
3729
3722
3730
static void zend_jit_reset_counters (void )
You can’t perform that action at this time.
0 commit comments