summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-5.6' into PHP-7.0Stanislav Malyshev2017-07-042-2/+2
|\ | | | | | | | | * PHP-5.6: Fix tests
| * Fix testsStanislav Malyshev2017-07-041-2/+2
| |
* | Un-XFAIL serialization testNikita Popov2017-01-101-2/+0
| |
* | Merge branch 'pull-request/1905'Joe Watkins2017-01-032-2/+314
| | | | | | | | | | * pull-request/1905: pack()/unpack() for Big Endian float/double and Little Endian float/double
* | improve skipifAnatol Belski2016-12-011-0/+3
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Nikita Popov2016-10-081-2/+32
|\ \ | |/
| * Revert "Fixed test"Nikita Popov2016-10-081-2/+32
| | | | | | | | This reverts commit a10d03ac166daba646b6023e0f12e9ee8040c909.
* | Merge branch 'PHP-5.6' into PHP-7.0Stanislav Malyshev2016-10-041-32/+2
|\ \ | |/ | | | | | | | | | | * PHP-5.6: Fixed test Added validation to parse_url() to prohibit restricted characters inside login/pass components based on RFC3986 Apparently negative wordwrap is a thing and should work as length = 0.
| * Fixed testIlia Alshanetsky2016-10-041-32/+2
| |
| * fix test (32bits)Remi Collet2016-09-151-1/+1
| |
* | Fixed skipXinchen Hui2016-09-211-1/+7
| |
* | Merge branch 'PHP-7.0.11' into PHP-7.0Stanislav Malyshev2016-09-121-17/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0.11: (22 commits) Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields I don't think 8cceb012a7aabf3c36ab7c2724a436f976cdd165 is needed Fix test Add check in fgetcsv in case sizeof(unit) != sizeof(size_t) Fix bug #73065: Out-Of-Bounds Read in php_wddx_push_element of wddx.c Fix bug #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile) Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction Fix bug #73029 - Missing type check when unserializing SplArray Fix bug #72860: wddx_deserialize use-after-free Fix bug #73007: add locale length check Fix bug #72928 - Out of bound when verify signature of zip phar in phar_parse_zipfile sync NEWS Revert "Merge branch 'PHP-5.6' into PHP-7.0" Merge branch 'PHP-5.6' into PHP-7.0 Merge branch 'PHP-5.6' into PHP-7.0 Revert "Revert "Merge branch 'PHP-5.6' into PHP-7.0"" fix version sync NEWS Fix bug #72957 set versions ...
| * | Revert "Merge branch 'PHP-5.6' into PHP-7.0"Anatol Belski2016-09-111-17/+0
| | | | | | | | | | | | | | | This reverts commit 946335ba706b7dbfe70a5fc9a1e74ee46af19cfe, reversing changes made to 3437dbfa0097d3c5be69d4efb26a2ecb3edf5168.
* | | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-09-101-0/+29
|\ \ \ | |/ / |/| / | |/ | | * PHP-5.6: Bug #73058 crypt broken when salt is 'too' long
| * Bug #73058 crypt broken when salt is 'too' longAnatol Belski2016-09-101-0/+29
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-08-291-0/+17
|\ \ | |/ | | | | | | * PHP-5.6: Fixed bug #72703 Out of bounds global memory read in BF_crypt triggered by password_verify
| * Fixed bug #72703 Out of bounds global memory read in BF_crypt triggered by ↵Anatol Belski2016-08-291-0/+17
| | | | | | | | password_verify
* | fix testsAnatol Belski2016-08-172-15/+7
| | | | | | | | The 70436 test is just a bonus for the hardening in 72633.
* | Merge branch 'PHP-5.6' into PHP-7.0Stanislav Malyshev2016-08-174-0/+128
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: (24 commits) Update NEWS BLock test with memory leak fix tests Fix TSRM build Fix bug #72850 - integer overflow in uuencode Fixed bug #72849 - integer overflow in urlencode Fix bug #72848 - integer overflow in quoted_printable_encode caused heap corruption Fix bug #72838 - Integer overflow lead to heap corruption in sql_regcase Fix bug #72837 - integer overflow in bzdecompress caused heap corruption Fix bug #72836 - integer overflow in base64_decode caused heap corruption Fix for bug #72807 - do not produce strings with negative length Fix for bug #72790 and bug #72799 Fix bug #72730 - imagegammacorrect allows arbitrary write access Fix bug#72697 - select_colors write out-of-bounds Fixed bug #72627: Memory Leakage In exif_process_IFD_in_TIFF Fix bug #72750: wddx_deserialize null dereference Fix bug #72771: ftps:// opendir wrapper is vulnerable to protocol downgrade attack Improve fix for #72663 Fix bug #70436: Use After Free Vulnerability in unserialize() Fix bug #72749: wddx_deserialize allows illegal memory access ... Conflicts: Zend/zend_API.h ext/bz2/bz2.c ext/curl/interface.c ext/ereg/ereg.c ext/exif/exif.c ext/gd/gd.c ext/gd/tests/imagetruecolortopalette_error3.phpt ext/gd/tests/imagetruecolortopalette_error4.phpt ext/session/session.c ext/snmp/snmp.c ext/standard/base64.c ext/standard/ftp_fopen_wrapper.c ext/standard/quot_print.c ext/standard/url.c ext/standard/uuencode.c ext/standard/var.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re ext/wddx/tests/bug72790.phpt ext/wddx/tests/bug72799.phpt ext/wddx/wddx.c sapi/cli/generate_mime_type_map.php
| * BLock test with memory leakStanislav Malyshev2016-08-161-1/+3
| |
| * Improve fix for #72663Stanislav Malyshev2016-08-161-0/+18
| |
| * Fix bug #70436: Use After Free Vulnerability in unserialize()Stanislav Malyshev2016-08-161-0/+65
| |
| * Fix bug #72663 - destroy broken object when unserializingStanislav Malyshev2016-08-162-0/+43
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-08-131-0/+12
|\ \ | |/
| * Fix #72823: strtr out-of-bound accessChristoph M. Becker2016-08-131-0/+12
| | | | | | | | | | If php_strtr_array_prepare_repls() reports pattern_len == 0, we return early to avoid OOB accesses, and because there is nothing to replace anyway.
* | Fix bug #55451Lauri Kenttä2016-08-072-1/+15
| | | | | | | | | | Make substr_compare ignore the length if it's NULL. This allows to use the last parameter (case_insensitivity) with the default length.
* | base64_decode: fix bug #72264 ('VV= =' shouldn't fail in strict mode)Lauri Kenttä2016-07-071-0/+7
| |
* | base64_decode: fix bug #72263 (skips char after padding)Lauri Kenttä2016-07-071-0/+13
| |
* | base64_decode: fix bug #72152 (fail on NUL bytes in strict mode)Lauri Kenttä2016-07-071-0/+11
| | | | | | | | | | This added check is actually for NOT failing in NON-strict mode. The ch == -2 check later causes the desired failure in strict mode.
* | fix two remaining testsAnatol Belski2016-06-212-5/+32
| |
* | Merge branch 'PHP-5.6.23' into PHP-7.0.8Stanislav Malyshev2016-06-212-0/+65
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-212-0/+65
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 #72434: ZipArchive class Use After Free Vulnerability in PHP's GC ↵Stanislav Malyshev2016-06-201-0/+33
| | | | | | | | | | | | algorithm and unserialize
| | * Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and ↵Stanislav Malyshev2016-06-201-0/+32
| | | | | | | | | | | | unserialize
* | | Fixed bug #72100 (implode() inserts garbage into resulting string when joins ↵Dmitry Stogov2016-04-261-0/+18
| | | | | | | | | | | | very big integer). (Mikhail Galanin)
* | | Fixed bug #71969 (str_replace returns an incorrect resulting array after a ↵Xinchen Hui2016-04-061-0/+28
| | | | | | | | | | | | foreach by reference)
* | | fix #71287 (substr_replace bug when length type is string)Joe Watkins2016-03-311-5/+5
| | |
* | | Fixed bug #71806Nikita Popov2016-03-112-0/+14
| | |
* | | Fixed test (sizeof(zend_string) is different on 32 and 64-bit systems)Dmitry Stogov2016-03-021-1/+1
| | |
* | | Merge branch 'PHP-5.6' into PHP-7.0Julien Pauli2016-02-021-0/+16
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Updated NEWS Fix #70720 Conflicts: ext/standard/string.c ext/standard/tests/strings/bug70720.phpt
| * | Fix #70720Julien Pauli2016-02-021-1/+5
| | |
* | | Revert "Fix #70720"Anatol Belski2016-01-291-12/+0
| | | | | | | | | | | | This reverts commit ff7ed9021cd72a7f82dd4301cdc266afdff458ad.
* | | Merge branch 'PHP-5.6' into PHP-7.0Julien Pauli2015-12-221-0/+12
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-5.6: Fix #70720 Align NEWS entry format
| * | Fix #70720Julien Pauli2015-12-221-0/+12
| | |
| * | fix testAnatol Belski2015-08-281-1/+1
| | |
| * | fix testAnatol Belski2015-08-231-1/+1
| | | | | | | | | | | | backported from master
* | | Fixed bug #71190 (substr_replace converts integers in original $search array ↵Xinchen Hui2015-12-221-0/+27
| | | | | | | | | | | | to strings)
* | | Fixed #71188 (str_replace converts integers in original $search array to ↵Xinchen Hui2015-12-221-0/+28
| | | | | | | | | | | | strings)
* | | Fixed bug #70667 (strtr() causes invalid writes and a crashes)Dmitry Stogov2015-10-081-0/+9
| | |
* | | Fix bug #70487Nikita Popov2015-09-141-0/+10
| | | | | | | | | | | | Switch to * instead of + in zpp.