[php-src] PR #22327: main/poll: Cap kqueue grouped-event buffer write at runtime

From: Date: Mon, 15 Jun 2026 23:31:13 +0000
Subject: [php-src] PR #22327: main/poll: Cap kqueue grouped-event buffer write at runtime
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36451@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22327 Author: iliaal The kqueue grouped-event path bounded the result buffer only with a ZEND_ASSERT, allowing an out-of-bounds write in release builds when more distinct descriptors were ready than the caller's maxEvents. This caps the buffer write at runtime while still running the oneshot bookkeeping so the backend's tracking stays in sync. An alternative is to cap the kevent() request to maxEvents so the dedup can't exceed the buffer; this takes the minimal in-place fix. kqueue isn't compiled on Linux, so it rides macOS CI. Split out of #22316 on review.

« previous php.git-pulls (#36451) next »