mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Prevent recording traces started from usupported VM instruction
This commit is contained in:
@@ -643,6 +643,16 @@ zend_jit_trace_stop ZEND_FASTCALL zend_jit_trace_execute(zend_execute_data *ex,
|
||||
return ZEND_JIT_TRACE_STOP_EXCEPTION;
|
||||
}
|
||||
|
||||
trace_flags = ZEND_OP_TRACE_INFO(opline, offset)->trace_flags;
|
||||
if (trace_flags & ZEND_JIT_TRACE_UNSUPPORTED) {
|
||||
TRACE_END(ZEND_JIT_TRACE_END, ZEND_JIT_TRACE_STOP_NOT_SUPPORTED, opline);
|
||||
#ifdef HAVE_GCC_GLOBAL_REGS
|
||||
execute_data = save_execute_data;
|
||||
opline = save_opline;
|
||||
#endif
|
||||
return ZEND_JIT_TRACE_STOP_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
if (prev_call) {
|
||||
int ret = zend_jit_trace_record_fake_init_call(prev_call, trace_buffer, idx, is_megamorphic);
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user