1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.4' into PHP-8.5

* PHP-8.4:
  ext/pcntl: Fix cpuset leak in pcntl_setcpuaffinity on out-of-range CPU ID
This commit is contained in:
David Carlier
2026-02-22 19:58:41 +00:00

View File

@@ -1782,6 +1782,7 @@ PHP_FUNCTION(pcntl_setcpuaffinity)
if (cpu < 0 || cpu >= maxcpus) {
zend_argument_value_error(2, "cpu id must be between 0 and " ZEND_ULONG_FMT " (" ZEND_LONG_FMT ")", maxcpus, cpu);
PCNTL_CPU_DESTROY(mask);
RETURN_THROWS();
}