Skip to content

Commit f5ee342

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Fix #81283: shmop can't read beyond 2147483647 bytes
2 parents c4f4f1e + 71879d3 commit f5ee342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/shmop/shmop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ PHP_FUNCTION(shmop_read)
235235
RETURN_THROWS();
236236
}
237237

238-
if (count < 0 || start > (INT_MAX - count) || start + count > shmop->size) {
238+
if (count < 0 || start > (ZEND_LONG_MAX - count) || start + count > shmop->size) {
239239
zend_argument_value_error(3, "is out of range");
240240
RETURN_THROWS();
241241
}

0 commit comments

Comments
 (0)