From 645e15c2eae2c63f964e00e7b218f78c1c02d6ff Mon Sep 17 00:00:00 2001 From: Matt Wilmas Date: Tue, 17 Feb 2009 15:15:18 +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 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; } -- 2.40.0