We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc2d02e + 6fda0a5 commit 16b2fc4Copy full SHA for 16b2fc4
ext/opcache/jit/zend_jit.c
@@ -3864,6 +3864,14 @@ void zend_jit_shutdown(void)
3864
#else
3865
zend_jit_trace_free_caches(&jit_globals);
3866
#endif
3867
+
3868
+ /* Reset global pointers to prevent use-after-free in `zend_jit_status()`
3869
+ * after gracefully restarting Apache with mod_php, see:
3870
+ * https://github.com/php/php-src/pull/19212 */
3871
+ dasm_ptr = NULL;
3872
+ dasm_buf = NULL;
3873
+ dasm_end = NULL;
3874
+ dasm_size = 0;
3875
}
3876
3877
static void zend_jit_reset_counters(void)
0 commit comments