mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
Fixed segfault introduced in 447e57a1e1
This commit is contained in:
@@ -3695,14 +3695,14 @@ static zend_bool can_convert_to_double(
|
||||
static int zend_type_narrowing(const zend_op_array *op_array, const zend_script *script, zend_ssa *ssa)
|
||||
{
|
||||
uint32_t bitset_len = zend_bitset_len(ssa->vars_count);
|
||||
zend_bitset visited = 0;
|
||||
zend_bitset worklist = visited + bitset_len;
|
||||
zend_bitset visited, worklist;
|
||||
int i, v;
|
||||
zend_op *opline;
|
||||
zend_bool narrowed = 0;
|
||||
ALLOCA_FLAG(use_heap)
|
||||
|
||||
visited = ZEND_BITSET_ALLOCA(2 * bitset_len, use_heap);
|
||||
worklist = visited + bitset_len;
|
||||
|
||||
zend_bitset_clear(worklist, bitset_len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user