php-src/ext/shmop
Niels Dossche 39a3266576
Fix GH-14537: shmop Windows 11 crashes the process
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.

Closes GH-14707.
2024-06-28 20:13:47 +02:00
..
tests Fix GH-14537: shmop Windows 11 crashes the process 2024-06-28 20:13:47 +02:00
config.m4 Normalize comments in *nix build system m4 files 2019-05-12 18:43:03 +02:00
config.w32 Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
CREDITS
php_shmop.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
shmop.c Revert "Port all internally used classes to use default_object_handlers" 2022-09-14 11:13:23 +02:00
shmop.stub.php Not serializable flag permeation 2021-07-20 12:28:35 +02:00
shmop_arginfo.h Not serializable flag permeation 2021-07-20 12:28:35 +02:00