mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.0'
* PHP-8.0: Fix #81283: shmop can't read beyond 2147483647 bytes
This commit is contained in:
commit
f5ee3429db
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ PHP_FUNCTION(shmop_read)
|
|||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
if (count < 0 || start > (INT_MAX - count) || start + count > shmop->size) {
|
||||
if (count < 0 || start > (ZEND_LONG_MAX - count) || start + count > shmop->size) {
|
||||
zend_argument_value_error(3, "is out of range");
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue