From: Matt Wilmas Date: Tue, 17 Feb 2009 15:15:18 +0000 (+0000) Subject: MFH: Overflow comment X-Git-Tag: RELEASE_1_3_5~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=645e15c2eae2c63f964e00e7b218f78c1c02d6ff;p=php MFH: Overflow comment --- diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 79e1217a09..d78e0ece4c 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -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; }