From c660d02c3c9a2620bd0a59514b7833eb707862a9 Mon Sep 17 00:00:00 2001 From: Matt Wilmas Date: Tue, 17 Feb 2009 15:14:48 +0000 Subject: [PATCH] Added overflow comment from div_function --- Zend/zend_operators.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index da735a18b5..02b42cb1f6 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -1524,6 +1524,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