summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug #73646 (mb_ereg_search_init null pointer dereference)Xinchen Hui2016-12-091-0/+11
|
* Fixed bug #73532 (Null pointer dereference in mb_eregi)Xinchen Hui2016-11-161-0/+8
|
* Merge branch 'pull-request/2115' into PHP-7.1Christoph M. Becker2016-09-061-1/+1
|\
| * Fix #72948: Uncatchable "Catchable" fatal error for class to string conversionsChristoph M. Becker2016-09-031-1/+1
| | | | | | | | | | | | | | E_RECOVERABLE errors are reported as "Catchable fatal error". This is misleading, because they actually can't be caught via try-catch statements. Therefore we change the wording to "Recoverable fatal error" as suggested by Nikita.
* | Merge branch 'PHP-7.0' into PHP-7.1Yasuo Ohgaki2016-09-061-0/+53
|\ \ | | | | | | | | | | | | * PHP-7.0: Fixed Bug #66964 mb_convert_variables() cannot detect recursion
| * \ Merge branch 'PHP-5.6' into PHP-7.0Yasuo Ohgaki2016-09-061-0/+53
| |\ \ | | | | | | | | | | | | | | | | * PHP-5.6: Fixed Bug #66964 mb_convert_variables() cannot detect recursion
| | * | Fixed Bug #66964 mb_convert_variables() cannot detect recursionYasuo Ohgaki2016-09-061-0/+53
| | | |
* | | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-09-041-0/+17
|\ \ \ \ | |/ / / | | | / | |_|/ |/| |
| * | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-09-041-0/+17
| |\ \ | | |/
| | * Fix #72994: mbc_to_code() out of bounds readChristoph M. Becker2016-09-041-0/+17
| | | | | | | | | | | | We're backporting commit 999a3553 to the still supported PHP 5.6.
* | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-08-301-0/+23
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-08-301-0/+23
| |\ \ | | |/
| | * Fix #66797: mb_substr only takes 32-bit signed integerChristoph M. Becker2016-08-301-0/+23
| | | | | | | | | | | | | | | | | | `from` and `len` are `long`, but get passed to mbfl_substr() which expects `int`s. Therefore we clamp the values to avoid the undefined conversion behavior.
* | | Fix #72711: `mb_ereg` does not clear the `$regs` parameter on failureju1ius2016-08-055-48/+95
| | | | | | | | | | | | | | | When `mb_ereg` failed to match, it didn't update the `$regs` argument. Now it will always set it to the empty array.
* | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-07-301-0/+12
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-07-301-0/+12
| |\ \ | | |/
| | * fixes bad address given to onig_error_code_to_strju1ius2016-07-301-0/+12
| | | | | | | | | | | | | | | | | | Closes bug #72710 (cherry picked from commit 0fb7eb6723bcc6fd98053911543e801edb5ab763)
* | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-07-282-4/+25
|\ \ \ | |/ / | | | | | | | | | # Resolved conflicts: # ext/mbstring/php_mbregex.c
| * | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-07-281-0/+21
| |\ \ | | |/ | | | | | | | | | # Resolved conflicts: # ext/mbstring/php_mbregex.c
| | * Fix #72694: mb_ereg_search_setpos does not accept a string's last positionChristoph M. Becker2016-07-281-0/+21
| | | | | | | | | | | | | | | Setting the search position immediately behind the last character should be allowed, so we fix this off-by-one error.
* | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-07-282-4/+45
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-07-282-4/+45
| |\ \ | | |/
| | * Fix #72693: mb_ereg_search increments search position when a match zero-widthChristoph M. Becker2016-07-282-4/+45
| | | | | | | | | | | | That's caused by an off-by-one error, which we fix.
* | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-07-281-0/+48
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-07-281-0/+48
| |\ \ | | |/ | | | | | | | | | # Resolved conflicts: # ext/mbstring/php_mbregex.c
| | * Fix #72691: mb_ereg_search raises a warning if a match zero-widthChristoph M. Becker2016-07-281-0/+48
| | | | | | | | | | | | | | | That warning doesn't make sense (PCRE doesn't throw such a warning either), so we remove it.
* | | add testMasaki Kagaya2016-07-171-0/+21
| | |
* | | Implement RFC "Deprecate mb_ereg_replace eval option"Christoph M. Becker2016-07-112-1/+4
| | | | | | | | | | | | | | | <https://wiki.php.net/rfc/deprecate_mb_ereg_replace_eval_option> has been accepted, so we implement it.
* | | Merge branch 'throw-error-in-extensions'Aaron Piotrowski2016-07-051-3/+10
|\ \ \
| * \ \ Merge branch 'master' into throw-error-in-extensionsAaron Piotrowski2016-06-1010-241/+499
| |\ \ \
| * | | | Convert E_ERROR to thrown Error in extensionsAaron Piotrowski2015-07-051-3/+10
| | | | |
* | | | | Merge branch 'PHP-7.0'Stanislav Malyshev2016-06-211-0/+17
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0: iFixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow update NEWS fix tests fix build Fix bug #72455: Heap Overflow due to integer overflows Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize Fix bug #72407: NULL Pointer Dereference at _gdScaleVert Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free Fix bug #72298 pass2_no_dither out-of-bounds access Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow Fix bug #72262 - do not overflow int Fix bug #72400 and #72403 - prevent signed int overflows for string lengths Fix bug #72275: don't allow smart_str to overflow int Fix bug #72340: Double Free Courruption in wddx_deserialize Fix bug #72321 - use efree() for emalloc allocation 5.6.23RC1 fix NEWS set versions
| * | | | Merge branch 'PHP-7.0.8' into PHP-7.0Stanislav Malyshev2016-06-211-0/+17
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0.8: iFixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow update NEWS fix tests fix build Fix bug #72455: Heap Overflow due to integer overflows Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize Fix bug #72407: NULL Pointer Dereference at _gdScaleVert Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free Fix bug #72298 pass2_no_dither out-of-bounds access Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow Fix bug #72262 - do not overflow int Fix bug #72400 and #72403 - prevent signed int overflows for string lengths Fix bug #72275: don't allow smart_str to overflow int Fix bug #72340: Double Free Courruption in wddx_deserialize Fix bug #72321 - use efree() for emalloc allocation 5.6.23RC1 fix NEWS set versions Conflicts: configure.in main/php_version.h
| | * \ \ \ Merge branch 'PHP-5.6.23' into PHP-7.0.8Stanislav Malyshev2016-06-211-0/+17
| | |\ \ \ \ | | | | |_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6.23: (24 commits) iFixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow update NEWS fix tests fix build Fix bug #72455: Heap Overflow due to integer overflows Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize Fix bug #72407: NULL Pointer Dereference at _gdScaleVert Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free Fix bug #72298 pass2_no_dither out-of-bounds access Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow Fix bug #72262 - do not overflow int Fix bug #72400 and #72403 - prevent signed int overflows for string lengths Fix bug #72275: don't allow smart_str to overflow int Fix bug #72340: Double Free Courruption in wddx_deserialize update NEWS Fix #66387: Stack overflow with imagefilltoborder Fix bug #72321 - use efree() for emalloc allocation 5.6.23RC1 Fix bug #72140 (segfault after calling ERR_free_strings()) ... Conflicts: configure.in ext/mbstring/php_mbregex.c ext/mcrypt/mcrypt.c ext/spl/spl_array.c ext/spl/spl_directory.c ext/standard/php_smart_str.h ext/standard/string.c ext/standard/url.c ext/wddx/wddx.c ext/zip/php_zip.c main/php_version.h
| | | * | | Merge branch 'PHP-5.5' into PHP-5.6.23Stanislav Malyshev2016-06-211-0/+17
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Fixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow update NEWS fix tests fix build Fix bug #72455: Heap Overflow due to integer overflows Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize Fix bug #72407: NULL Pointer Dereference at _gdScaleVert Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free Fix bug #72298 pass2_no_dither out-of-bounds access Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow Fix bug #72262 - do not overflow int Fix bug #72400 and #72403 - prevent signed int overflows for string lengths Fix bug #72275: don't allow smart_str to overflow int Fix bug #72340: Double Free Courruption in wddx_deserialize update NEWS Fix #66387: Stack overflow with imagefilltoborder Skip test which is 64bits only 5.5.37 now Conflicts: configure.in ext/mcrypt/mcrypt.c ext/spl/spl_directory.c main/php_version.h
| | | | * | | Fix bug #72402: _php_mb_regex_ereg_replace_exec - double freeStanislav Malyshev2016-06-181-0/+17
| | | | | | |
| | | | * | | added missing parenthesesMasaki Kagaya2015-03-081-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added test case for bug #68846 replaced tab with space added missing parentheses again See also: http://icu-project.org/docs/papers/gb18030.html#h7
| | | | * | | put this test back to XFAIL, as it was before, since it is still leaking memoryFerenc Kovacs2014-04-291-0/+2
| | | | | | |
| | | | * | | tests still failing, so xfail for now until fixedStanislav Malyshev2014-01-292-2/+4
| | | | | | |
| | | * | | | added missing parenthesesMasaki Kagaya2015-03-081-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added test case for bug #68846 replaced tab with space added missing parentheses again See also: http://icu-project.org/docs/papers/gb18030.html#h7
| | | * | | | typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-232-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ext/ftp/ftp.h ext/pcre/pcrelib/pcre_printint.c ext/pcre/pcrelib/sljit/sljitLir.c ext/pcre/pcrelib/sljit/sljitLir.h ext/pcre/pcrelib/sljit/sljitNativeARM_32.c ext/pcre/pcrelib/sljit/sljitNativeTILEGX_64.c ext/pgsql/pgsql.c ext/phar/func_interceptors.c ext/soap/soap.c ext/standard/image.c
* | | | | | | Merge branch 'PHP-7.0'Xinchen Hui2016-06-131-0/+10
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | / | |_|_|_|_|/ |/| | | | |
| * | | | | Fixed bug #72399 (Use-After-Free in MBString (search_re))Xinchen Hui2016-06-131-0/+10
| |/ / / /
* | | | | Merge branch 'PHP-7.0'Xinchen Hui2016-05-051-0/+14
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.0: Fixed bug #72164 (Null Pointer Dereference - mb_ereg_replace)
| * | | | Fixed bug #72164 (Null Pointer Dereference - mb_ereg_replace)Xinchen Hui2016-05-051-0/+14
| | |_|/ | |/| |
* | | | mb_strpos()/mb_stripos(): Add support for negative offsetFrancois Laupretre2016-03-097-151/+255
| | | |
* | | | mb_ereg_search_setpos(): Add support for negative positionFrancois Laupretre2016-03-091-0/+70
| | | | | | | | | | | | | | | | Also add missing test for this function
* | | | mb_strimwidth(): Add support for negative 'start' and 'width'Francois Laupretre2016-03-091-11/+25
| | | |
* | | | strpos()/stripos(): Add support for negative offsetsFrancois Laupretre2016-03-091-87/+143
|/ / /
* | | Finish PHP 4 constructor deprecationNikita Popov2015-03-311-1/+1
| | |