php-src/ext/pcre
Niels Dossche dc27acddd6
Fix GH-17122: memory leak in regex
Because the subpattern names are persistent, and the fact that the
symbol table destruction is skipped when using fast_shutdown,
this means the refcounts will not be updated for the destruction of
the arrays that hold the subpattern name keys.
To solve this, detect this situation and duplicate the strings.

Closes GH-17132.
2025-01-06 20:11:36 +01:00
..
pcre2lib ext/pcre: update Config to match upstream (#14509) 2024-06-08 21:34:18 +02:00
tests Fix GH-17122: memory leak in regex 2025-01-06 20:11:36 +01:00
config.w32 Sync preprocessor macros help texts (#15218) 2024-08-04 12:52:16 +02:00
config0.m4 Autotools: Fix external PCRE JIT check (#15430) 2024-08-16 19:21:13 +02:00
CREDITS
php_pcre.c Fix GH-17122: memory leak in regex 2025-01-06 20:11:36 +01:00
php_pcre.def Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
php_pcre.h Fix UAF issues with PCRE after request shutdown 2024-09-11 18:49:19 +02:00
php_pcre.stub.php Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
php_pcre_arginfo.h Implement "support doc comments for internal classes and functions" (#13266) 2024-02-25 08:41:31 +01:00