summaryrefslogtreecommitdiff
path: root/ext/pcre
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Test request47456.phpt for PR 1303" on PHP-7.0 and PHP-7.1Mitch Hagstrand2017-01-071-6/+6
| | | | | This reverts commit e55e93a1e335bec39b7edb28f0b8470fa974f4e3. This change should only apply to master. Not PHP-7.0 or PHP-7.1
* Test request47456.phpt for PR 1303Mitch Hagstrand2017-01-061-6/+6
| | | | After merging PR 1303 unmatched subpatterns are set to NULL
* Update copyright headers to 2017Sammy Kaye Powers2017-01-042-2/+2
|
* Fix #73612: preg_*() may leak memoryChristoph M. Becker2016-11-262-5/+32
| | | | | We have to make sure that collectible zvals end up in the GC root buffer, to avoid memory leaks.
* Fixed bug #73483 (Segmentation fault on pcre_replace_callback)Xinchen Hui2016-11-202-32/+80
|
* Skip if no jit is builtXinchen Hui2016-10-292-0/+10
|
* Fixed bug #73392 (A use-after-free in zend allocator management)Xinchen Hui2016-10-282-5/+31
|
* rename publicly exposed symbol to avoid name conflictsAnatol Belski2016-10-131-3/+3
|
* Fix potential overflows in php_pcre_replace_implStanislav Malyshev2016-10-121-18/+16
|
* Fix bug #73121 Bundled PCRE doesn't compile because JIT isn't supported on s390Anatol Belski2016-09-235-11/+39
|
* Remove zpp fallback code (always use Fast ZPP)Andrea Faulds2016-09-111-58/+0
| | | | | | | | | | | | | | | | Squashed commit of the following: commit 3e27fbb3d22b42d181e15c345f1c59a007b6b58c Author: Andrea Faulds <ajf@ajf.me> Date: Sun Sep 11 19:14:37 2016 +0100 Keep dummy FAST_ZPP macro for compatibility commit 8a7cfd00deaa4a3c5026c97580c49c886c72a5b4 Author: Andrea Faulds <ajf@ajf.me> Date: Mon Sep 5 22:36:03 2016 +0100 Remove FAST_ZPP macro and plain zpp fallback code
* Merge branch 'PHP-5.6' into PHP-7.0Stanislav Malyshev2016-09-052-0/+102
|\ | | | | | | | | * PHP-5.6: Implement #47456: Missing PCRE option 'J'
| * Implement #47456: Missing PCRE option 'J'Christoph M. Becker2016-09-052-0/+102
| | | | | | | | | | | | | | | | | | While it is possible to force the same behavior by setting the internal option (?J), having a dedicated modifier appears to be useful. After all, J is even listed on the "Pattern Modifiers" man page[1], but the description referrs to (?J). [1] <http://php.net/manual/en/reference.pcre.pattern.modifiers.php>
* | fix possible memory leakAnatol Belski2016-08-291-0/+5
| |
* | Revert "upgraded to PCRE 8.39"Anatol Belski2016-07-3161-5976/+4238
| | | | | | | | | | | | | | | | | | | | This reverts commit 2fba6468374a15efc82aaac8cbfc600b29c5404f. PCRE-8.39 throws weird valgrind backtraces on some systems, see http://news.php.net/php.cvs/93494 . Those could be false positives due to some changes in JIT, still i couldn't 100% ensure this. Thus, better we continue to ship 8.38 bundled for now, and apply patches, if needed.
* | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-07-272-1/+18
|\ \ | |/ | | | | | | # Resolved conflicts: # ext/pcre/php_pcre.c
| * Fix #72688: preg_match missing group names in matchesChristoph M. Becker2016-07-272-1/+18
| | | | | | | | We have to multiply with 0x100 to properly scale the high byte.
* | upgraded to PCRE 8.39Anatol Belski2016-07-2661-4238/+5976
| | | | | | | | (cherry picked from commit 9d4fe9672a1c32d1349f267d24d079e3ebdc83e8)
* | Rewrite test to avoid sending emailsMatteo Beccati2016-07-062-5/+27
| | | | | | | | | | A properly configured email server was generating bounce emails when running the test.
* | yet another test rewriteAnatol Belski2016-06-231-3/+8
| |
* | Fixed bug #72476 (Memleak in jit_stack)Xinchen Hui2016-06-231-1/+1
| |
* | rewrite testAnatol Belski2016-06-221-2/+3
| |
* | Fixed bug #72463 mail fails with invalid argumentAnatol Belski2016-06-222-1/+13
| |
* | Revert "Revert "fix #72143 (preg_replace uses int instead of size_t on ↵Xinchen Hui2016-05-161-2/+2
| | | | | | | | | | | | | | | | zend_string_allocs)"" obviously I read the change is in argument lists by mistake :< This reverts commit 9e7afa75140afd047cb95280a610cff9368a7517.
* | Revert "fix #72143 (preg_replace uses int instead of size_t on ↵Xinchen Hui2016-05-161-2/+2
| | | | | | | | | | | | | | | | zend_string_allocs)" ABI break This reverts commit fb951553be0175712f4b757e05004110d7421e04.
* | fix #72143 (preg_replace uses int instead of size_t on zend_string_allocs)Joe Watkins2016-05-141-2/+2
| |
* | if there's no JIT support, no RINIT is really neededAnatol Belski2016-03-221-2/+6
| |
* | decrease the default PCRE JIT stack to 64KAnatol Belski2016-03-211-1/+1
| |
* | Increase PCRE JIT stack sizeAnatol Belski2016-03-213-2/+970
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is done by implementing the custom stack usage. This makes the JIT with mode on more compatible with the JIT mode off. Until now, the default PCRE JIT stack was used which is 32kb big by default. There are situations where some patterns would fail with JIT while working correctly without JIT. The starting size of the JIT stack is still set to 32kb, while the max is set to the permissive 256kb (and can be increased up to 1mb). As until now no suchlike bugs regarding JIT were reported, it is expected, that the stack usage will stay by 32kb in most cases. Though providing the custom stack, applications will have more room for some sporadic stack increase, thus more compatibility.
* | Fix bug #71659Nikita Popov2016-03-091-24/+4
| |
* | Fix bug #71575 removing extra semicolons outside macrosJames Titcumb2016-03-031-1/+1
| |
* | Happy Year of Monkey (Forgot test of #71537)Xinchen Hui2016-02-081-0/+9
| |
* | Fixed bug #71537 (PCRE segfault from Opcache)Xinchen Hui2016-02-071-6/+8
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Stanislav Malyshev2016-01-3151-1573/+3279
|\ \ | |/ | | | | | | | | | | | | | | | | * PHP-5.6: Upgrade bundled PCRE to 8.38 Fixed NEWS file entry fix the fix for bug #70976 (imagerotate) Conflicts: ext/pcre/pcrelib/config.h
| * Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2016-01-3150-1511/+3141
| |\ | | | | | | | | | | | | | | | | | | * PHP-5.5: Upgrade bundled PCRE to 8.38 Fixed NEWS file entry fix the fix for bug #70976 (imagerotate)
| | * Upgrade bundled PCRE to 8.38Stanislav Malyshev2016-01-3150-1511/+3141
| | |
* | | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-012-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * | Happy new year (Update copyright to 2016)Lior Kaplan2016-01-012-2/+2
| | |
| * | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-09-011-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-5.5: More fixes for bug #70219
| | * Merge branch 'PHP-5.4.45' into PHP-5.5.29Stanislav Malyshev2015-09-012-74/+98
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4.45: add test Fix bug #70366 - use-after-free vulnerability in unserialize() with SplDoublyLinkedList Fix bug #70365 - use-after-free vulnerability in unserialize() with SplObjectStorage Fix bug #70172 - Use After Free Vulnerability in unserialize() Fix bug #70388 - SOAP serialize_function_call() type confusion Fixed bug #70350: ZipArchive::extractTo allows for directory traversal when creating directories Improve fix for #70385 Fix bug #70345 (Multiple vulnerabilities related to PCRE functions) Fix bug #70385 (Buffer over-read in exif_read_data with TIFF IFD tag byte value of 32 bytes) Conflicts: ext/pcre/php_pcre.c ext/standard/var_unserializer.c
* | | | Fixed bug #71178 (preg_replace with arrays creates [0] in replace array if ↵Xinchen Hui2015-12-211-1/+1
| | | | | | | | | | | | | | | | not already set)
* | | | add comment to testAnatol Belski2015-10-071-0/+2
| | | |
* | | | Removed or simplified incorrect SEPARATE_*() macros usage.Dmitry Stogov2015-09-291-2/+0
| | | |
* | | | Merge branch 'PHP-5.6'Stanislav Malyshev2015-09-022-3/+27
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: (21 commits) fix unit tests update NEWS add NEWS for fixes Improve fix for #70172 Fix bug #70312 - HAVAL gives wrong hashes in specific cases fix test add test Fix bug #70366 - use-after-free vulnerability in unserialize() with SplDoublyLinkedList Fix bug #70365 - use-after-free vulnerability in unserialize() with SplObjectStorage Fix bug #70172 - Use After Free Vulnerability in unserialize() Fix bug #70388 - SOAP serialize_function_call() type confusion Fixed bug #70350: ZipArchive::extractTo allows for directory traversal when creating directories Improve fix for #70385 Fix bug #70345 (Multiple vulnerabilities related to PCRE functions) Fix bug #70385 (Buffer over-read in exif_read_data with TIFF IFD tag byte value of 32 bytes) Fix bug #70219 (Use after free vulnerability in session deserializer) Fix bug ##70284 (Use after free vulnerability in unserialize() with GMP) Fix for bug #69782 Add CVE IDs asigned (post release) to PHP 5.4.43 Add CVE IDs asigned to #69085 (PHP 5.4.39) ... Conflicts: ext/exif/exif.c ext/gmp/gmp.c ext/pcre/php_pcre.c ext/session/session.c ext/session/tests/session_decode_variation3.phpt ext/soap/soap.c ext/spl/spl_observer.c ext/standard/var.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re ext/xsl/xsltprocessor.c
| * | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-09-012-69/+93
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: update NEWS add NEWS for fixes Improve fix for #70172 Fix bug #70312 - HAVAL gives wrong hashes in specific cases fix test add test Fix bug #70366 - use-after-free vulnerability in unserialize() with SplDoublyLinkedList Fix bug #70365 - use-after-free vulnerability in unserialize() with SplObjectStorage Fix bug #70172 - Use After Free Vulnerability in unserialize() Fix bug #70388 - SOAP serialize_function_call() type confusion Fixed bug #70350: ZipArchive::extractTo allows for directory traversal when creating directories Improve fix for #70385 Fix bug #70345 (Multiple vulnerabilities related to PCRE functions) Fix bug #70385 (Buffer over-read in exif_read_data with TIFF IFD tag byte value of 32 bytes) Fix bug #70219 (Use after free vulnerability in session deserializer) Fix for bug #69782 Add CVE IDs asigned (post release) to PHP 5.4.43 Add CVE IDs asigned to #69085 (PHP 5.4.39) 5.4.45 next Conflicts: ext/pcre/php_pcre.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re ext/zip/php_zip.c
| | * \ \ Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-09-012-73/+97
| | |\ \ \ | | | |/ / | | |/| / | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: Improve fix for #70172 Fix bug #70312 - HAVAL gives wrong hashes in specific cases fix test add test Fix bug #70366 - use-after-free vulnerability in unserialize() with SplDoublyLinkedList Fix bug #70365 - use-after-free vulnerability in unserialize() with SplObjectStorage Fix bug #70172 - Use After Free Vulnerability in unserialize() Fix bug #70388 - SOAP serialize_function_call() type confusion Fixed bug #70350: ZipArchive::extractTo allows for directory traversal when creating directories Improve fix for #70385 Fix bug #70345 (Multiple vulnerabilities related to PCRE functions) Fix bug #70385 (Buffer over-read in exif_read_data with TIFF IFD tag byte value of 32 bytes) Fix bug #70219 (Use after free vulnerability in session deserializer) Fix for bug #69782 Add CVE IDs asigned (post release) to PHP 5.4.43 Add CVE IDs asigned to #69085 (PHP 5.4.39) 5.4.45 next Conflicts: configure.in ext/pcre/php_pcre.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re main/php_version.h
| | | * Fix bug #70345 (Multiple vulnerabilities related to PCRE functions)Stanislav Malyshev2015-08-282-76/+100
| | | |
* | | | add some range checks to pcreAnatol Belski2015-08-261-0/+15
| | | |
* | | | Merge branch 'PHP-5.6'Christoph M. Becker2015-08-132-9/+82
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Fix #70232: Incorrect bump-along behavior with \K and empty string match Resolved conflicts: ext/pcre/php_pcre.c
| * | | Fix #70232: Incorrect bump-along behavior with \K and empty string matchChristoph M. Becker2015-08-132-9/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To do global matching (/g), for every empty match we have to do a second match with PCRE_NOTEMPTY turned on. That may fail, however, when the \K escape sequence is involved. For this purpose libpcre 8.0 introduced the PCRE_NOTEMPTY_ATSTART flag, which we will use if available, and otherwise fall back to the old (possibly buggy) behavior.