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 @@ -30,6 +30,10 @@ PHP NEWS
30
30
. Fixed bug GH-19098 (libxml<2.13 segmentation fault caused by
31
31
php_libxml_node_free). (nielsdos)
32
32
33
+ - Opcache:
34
+ . Reset global pointers to prevent use-after-free in zend_jit_status().
35
+ (Florian Engelhardt)
36
+
33
37
- OpenSSL:
34
38
. Fixed bug GH-18986 (OpenSSL backend: incorrect RAND_{load,write}_file()
35
39
return value check). (nielsdos, botovq)
Original file line number Diff line number Diff line change @@ -5101,6 +5101,14 @@ ZEND_EXT_API void zend_jit_shutdown(void)
5101
5101
#else
5102
5102
zend_jit_trace_free_caches (& jit_globals );
5103
5103
#endif
5104
+
5105
+ /* Reset global pointers to prevent use-after-free in `zend_jit_status()`
5106
+ * after gracefully restarting Apache with mod_php, see:
5107
+ * https://github.com/php/php-src/pull/19212 */
5108
+ dasm_ptr = NULL ;
5109
+ dasm_buf = NULL ;
5110
+ dasm_end = NULL ;
5111
+ dasm_size = 0 ;
5104
5112
}
5105
5113
5106
5114
static void zend_jit_reset_counters (void )
You can’t perform that action at this time.
0 commit comments