]> granicus.if.org Git - php/commitdiff
MFH: Overflow comment
authorMatt Wilmas <mattwil@php.net>
Tue, 17 Feb 2009 15:15:18 +0000 (15:15 +0000)
committerMatt Wilmas <mattwil@php.net>
Tue, 17 Feb 2009 15:15:18 +0000 (15:15 +0000)
Zend/zend_operators.c

index 79e1217a0908a16302478f7dd6b54c8a60aa923a..d78e0ece4c293b3e8f3cac2fbd015a7c66a89b54 100644 (file)
@@ -1006,6 +1006,7 @@ ZEND_API int mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
        }
 
        if (Z_LVAL_P(op2) == -1) {
+               /* Prevent overflow error/crash if op1==LONG_MIN */
                ZVAL_LONG(result, 0);
                return SUCCESS;
        }