You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Applying non-zero offset 36 to null pointer in zend_jit.c #13834
I can't reproduce this issue either. Can you please share information about how you built this (i.e. configure options + compiler version used), and how you run this?
The failure would be when getting the OP_DATA info, which would hint at a memory corruption issue somewhere, yet Valgrind nor ASAN show anything on my system...
Only trips Clang, GCC didn't warn here. So it's ssa_op that's NULL, and pointer arithmetic on that is indeed NULL...
The thing is that only one branch is actually possible to take, so we can just delay adding 1...
Activity
ndossche commentedon Mar 29, 2024
I can't reproduce this issue either. Can you please share information about how you built this (i.e. configure options + compiler version used), and how you run this?
The failure would be when getting the OP_DATA info, which would hint at a memory corruption issue somewhere, yet Valgrind nor ASAN show anything on my system...
YuanchengJiang commentedon Mar 30, 2024
The following script can reproduce in my environment (with UBSan and ASan):
ndossche commentedon Mar 30, 2024
Only trips Clang, GCC didn't warn here. So it's
ssa_opthat's NULL, and pointer arithmetic on that is indeed NULL...The thing is that only one branch is actually possible to take, so we can just delay adding 1...
Fix phpGH-13834: Applying non-zero offset 36 to null pointer in zend_…
Fix GH-13834: Applying non-zero offset 36 to null pointer in zend_jit…
Fix more "Applying non-zero offset XX to null pointer" warnings (See G…