Changeset 785 for trunk/utils.c


Ignore:
Timestamp:
2011-04-25T08:53:01+02:00 (3 years ago)
Author:
moo
Message:

fix false assertion for empty while (1) {}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils.c

    r778 r785  
    150150#endif 
    151151            case ZEND_JMP: 
    152                 assert(Z_OP(opline->op1).jmp_addr - op_array->opcodes < op_array->last); 
     152                assert(Z_OP(opline->op1).jmp_addr >= op_array->opcodes && Z_OP(opline->op1).jmp_addr - op_array->opcodes < op_array->last); 
    153153                Z_OP(opline->op1).opline_num = Z_OP(opline->op1).jmp_addr - op_array->opcodes; 
    154154                break; 
     
    160160            case ZEND_JMP_SET: 
    161161#endif 
    162                 assert(Z_OP(opline->op2).jmp_addr - op_array->opcodes < op_array->last); 
     162                assert(Z_OP(opline->op2).jmp_addr >= op_array->opcodes && Z_OP(opline->op2).jmp_addr - op_array->opcodes < op_array->last); 
    163163                Z_OP(opline->op2).opline_num = Z_OP(opline->op2).jmp_addr - op_array->opcodes; 
    164164                break; 
Note: See TracChangeset for help on using the changeset viewer.