-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix GH-13834: Applying non-zero offset 36 to null pointer in zend_jit.c #13846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7b6523c
befd724
09be586
1e7a540
f7c9a5c
a37ee2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15240,7 +15240,7 @@ static int zend_jit_switch(zend_jit_ctx *jit, const zend_op *opline, const zend_ | |
jit->b = -1; | ||
} | ||
} else { | ||
zend_ssa_op *ssa_op = &ssa->ops[opline - op_array->opcodes]; | ||
zend_ssa_op *ssa_op = ssa->ops ? &ssa->ops[opline - op_array->opcodes] : NULL; | ||
uint32_t op1_info = OP1_INFO(); | ||
zend_jit_addr op1_addr = OP1_ADDR(); | ||
const zend_op *default_opline = ZEND_OFFSET_TO_OPLINE(opline, opline->extended_value); | ||
|
@@ -16301,7 +16301,7 @@ static int zend_jit_trace_start(zend_jit_ctx *jit, | |
if (parent) { | ||
int i; | ||
int parent_vars_count = parent->exit_info[exit_num].stack_size; | ||
zend_jit_trace_stack *parent_stack = | ||
zend_jit_trace_stack *parent_stack = parent_vars_count == 0 ? NULL : | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you fix by this? (this is not related). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After removing |
||
parent->stack_map + | ||
parent->exit_info[exit_num].stack_offset; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this into
I think this should lead to a simple diff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, done.