If `shm.shm_segsz > ZEND_LONG_MAX` the assignment to `shmop->size` a
few lines below would overflow, so we catch that early and bail out if
necessary.
. Fixed bug #79412 (Opcache chokes and uses 100% CPU on specific script).
(Dmitry)
+- Shmop:
+ . Fixed bug #79427 (Integer Overflow in shmop_open()). (cmb)
+
- SimpleXML:
. Fixed bug #61597 (SXE properties may lack attributes and content). (cmb)
goto err;
}
+ if (shm.shm_segsz > ZEND_LONG_MAX) {
+ php_error_docref(NULL, E_WARNING, "shared memory segment too large to attach");
+ goto err;
+ }
+
shmop->addr = shmat(shmop->shmid, 0, shmop->shmatflg);
if (shmop->addr == (char*) -1) {
php_error_docref(NULL, E_WARNING, "unable to attach to shared memory segment '%s'", strerror(errno));