[php-src] PR #14707: Fix GH-14537: shmop Windows 11 crashes the process
| From: | nielsdos | Date: | Fri, 28 Jun 2024 16:27:40 +0000 |
| Subject: | [php-src] PR #14707: Fix GH-14537: shmop Windows 11 crashes the process | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26864@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14707
Author: nielsdos
The error handling code isn't entirely right in two places. One of the code blocks is dead
because of an always-false condition, and another code block is missing the assignment of a NULL
pointer.
Getting the exact same behaviour is not entirely possible because you can't extend the size of
a shared memory region after it was made with the Windows APIs we use, unless we destroy the region
and recreate it, but that has other consequences.
However, it certainly shouldn't crash.