php-src/ext/pcre
Christoph M. Becker a6b43086e6
Fix #81243: Too much memory is allocated for preg_replace()
Trimming a potentially over-allocated string appears to be reasonable,
so we drop the condition altogether.

We also re-allocate twice the size needed in the first place, and not
roughly tripple the size.

Closes GH-7231.
2021-07-12 18:33:55 +02:00
..
pcre2lib Fix #80118: Erroneous whitespace match with JIT only 2020-09-21 10:28:22 +02:00
tests Fix #81243: Too much memory is allocated for preg_replace() 2021-07-12 18:33:55 +02:00
config.w32 Upgrade bundled PCRE2 to 10.33 2019-05-25 11:37:30 +02:00
config0.m4 Fix bundled libpcre2 build regarding the -fcf-protection gcc flag 2020-09-17 16:21:01 +02:00
CREDITS
php_pcre.c Fix #81243: Too much memory is allocated for preg_replace() 2021-07-12 18:33:55 +02:00
php_pcre.def Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
php_pcre.h Merge branch 'PHP-7.3' into PHP-7.4 2019-10-08 16:14:06 +02:00