1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.4'

* PHP-8.4:
  Reset global pointers to prevent use-after-free
This commit is contained in:
Niels Dossche
2025-07-30 09:23:38 +02:00

View File

@@ -3864,6 +3864,14 @@ void zend_jit_shutdown(void)
#else
zend_jit_trace_free_caches(&jit_globals);
#endif
/* Reset global pointers to prevent use-after-free in `zend_jit_status()`
* after gracefully restarting Apache with mod_php, see:
* https://github.com/php/php-src/pull/19212 */
dasm_ptr = NULL;
dasm_buf = NULL;
dasm_end = NULL;
dasm_size = 0;
}
static void zend_jit_reset_counters(void)