php-src/TSRM
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
..
config.w32 Remove unused tsrm_strtok_r() function 2019-07-12 13:14:24 +02:00
LICENSE - Update to 2006 2006-01-04 23:55:42 +00:00
threads.m4 Fix GH-13727: macro generating invalid call test prototypes fixes. 2024-03-18 06:53:39 +00:00
tsrm_win32.c Fix GH-14537: shmop Windows 11 crashes the process 2024-06-28 20:13:47 +02:00
tsrm_win32.h Join shm_pair.info and .segment of Windows shm implementation 2022-06-10 17:18:27 +02:00
TSRM.c Fix GH-11188: Error when building TSRM in ARM64 2024-06-03 20:28:55 +02:00
TSRM.h Fix GH-11188: Error when building TSRM in ARM64 2024-06-03 20:28:55 +02:00
tsrm.m4 Merge branch 'PHP-7.4' 2019-07-01 13:26:17 +02:00