From df22f1e09afce72d142553e031845847b763c7ff Mon Sep 17 00:00:00 2001 From: Matt Wilmas Date: Tue, 17 Feb 2009 15:15:36 +0000 Subject: [PATCH] MFH: Overflow comment --- Zend/zend_operators.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 849aa34ac4..4fe38eb833 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -937,6 +937,7 @@ ZEND_API int mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) } if (op2->value.lval == -1) { + /* Prevent overflow error/crash if op1==LONG_MIN */ ZVAL_LONG(result, 0); return SUCCESS; } -- 2.50.1