Skip to content

Commit 74f25bf

Browse files
committed
Fix incorrect 64-bit reads
1 parent 0faaaf5 commit 74f25bf

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
@@ -12535,11 +12535,11 @@ static int zend_jit_ffi_read(zend_jit_ctx *jit,
1253512535
res_type = IS_LONG;
1253612536
break;
1253712537
case ZEND_FFI_TYPE_UINT64:
12538-
jit_set_Z_LVAL(jit, res_addr, ir_LOAD_U32(ptr));
12538+
jit_set_Z_LVAL(jit, res_addr, ir_LOAD_U64(ptr));
1253912539
res_type = IS_LONG;
1254012540
break;
1254112541
case ZEND_FFI_TYPE_SINT64:
12542-
jit_set_Z_LVAL(jit, res_addr, ir_LOAD_I32(ptr));
12542+
jit_set_Z_LVAL(jit, res_addr, ir_LOAD_I64(ptr));
1254312543
res_type = IS_LONG;
1254412544
break;
1254512545
#else

0 commit comments

Comments
 (0)