Skip to content

Commit f024af8

Browse files
committed
Fix incorrect 64-bit reads
1 parent 2ef9214 commit f024af8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12578,11 +12578,11 @@ static int zend_jit_ffi_read(zend_jit_ctx *jit,
1257812578
res_type = IS_LONG;
1257912579
break;
1258012580
case ZEND_FFI_TYPE_UINT64:
12581-
jit_set_Z_LVAL(jit, res_addr, ir_LOAD_U32(ptr));
12581+
jit_set_Z_LVAL(jit, res_addr, ir_LOAD_U64(ptr));
1258212582
res_type = IS_LONG;
1258312583
break;
1258412584
case ZEND_FFI_TYPE_SINT64:
12585-
jit_set_Z_LVAL(jit, res_addr, ir_LOAD_I32(ptr));
12585+
jit_set_Z_LVAL(jit, res_addr, ir_LOAD_I64(ptr));
1258612586
res_type = IS_LONG;
1258712587
break;
1258812588
#else

0 commit comments

Comments
 (0)