mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
00c6d538ab
* Fix GH-13834: Applying non-zero offset 36 to null pointer in zend_jit.c ssa_op can be NULL in function JIT. Doing pointer arithmetic on a NULL pointer is undefined behaviour. Undefined behaviour can be dangerous because the optimizer may assume then that the variable is not actually NULL. To solve this: 1. Add ADVANCE_SSA_OP() to safely add an offset to ssa_op in zend_jit.c 2. For inference, add an extra offset argument to the helper functions. To reproduce this, use Clang (not GCC) on a test like sapi/cli/tests/gh12363.phpt (or other tests also work). * Remove -fno-sanitize=pointer-overflow flag from CI * Fix NULL pointer offsets added to the stack_map * Fix an offset add on a potentially NULL ssa->ops * Fix NULL pointer arithmetic in zend_range_info() * Address review comments |
||
---|---|---|
.. | ||
actions | ||
ISSUE_TEMPLATE | ||
scripts | ||
workflows | ||
CODEOWNERS | ||
labeler.yml | ||
lsan-suppressions.txt | ||
nightly_matrix.php | ||
setup_hmailserver.php |