Skip to content

Commit 645e15c

Browse files
author
Matt Wilmas
committed
MFH: Overflow comment
1 parent 1d30518 commit 645e15c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_operators.c

+1
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,7 @@ ZEND_API int mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
10061006
}
10071007

10081008
if (Z_LVAL_P(op2) == -1) {
1009+
/* Prevent overflow error/crash if op1==LONG_MIN */
10091010
ZVAL_LONG(result, 0);
10101011
return SUCCESS;
10111012
}

0 commit comments

Comments
 (0)