| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
enc_name can be NULL here. Take the name from the mbfl_encoding
instead.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is going to cause a segfault if reused in the next request.
To illustrate the issue, run these two scripts in sequence with
the built-in server:
// script1.php
mb_ereg_search_init('foobar');
mb_ereg_search('foo');
// script2.php
var_dump(mb_ereg_search_init("foobar"));
var_dump(mb_ereg_search_pos());
|
|
|
|
|
| |
This segfaulted because we assumed that if there are matches,
there must be a regular expression as well.
|
| |
|
|
|
|
| |
We must not modify arrays passed by value.
|
|\
| |
| |
| |
| |
| |
| |
| | |
* PHP-7.2:
Update NEWS
Fix bug #79037 (global buffer-overflow in `mbfl_filt_conv_big5_wchar`)
Fix #79099: OOB read in php_strip_tags_ex
Fix #79091: heap use-after-free in session_create_id()
|
| | |
|
| |
| |
| |
| | |
Oniguruma 6.9.4 fixes several CVEs.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
This partially reverts commit c55d09c2f547634b577aa5aeaa1438d772bc29d1,
because `MB_ONIGURUMA_VERSION` is only available as of PHP 7.4.0, so
that change made no sense for PHP-7.3; we keep it for PHP-7.4, though.
We also stick with the modification to bug78633.phpt.
|
| |
| |
| |
| |
| |
| | |
Apparently, bug 78633 has now really been fixed; the former fix only
catered to the buffer overflow, but yielded a wrong result. Also,
the order of the named captures has been fixed.
|
| |
| |
| |
| |
| | |
The proper `SIZEOF_SIZE_T` definitions are available as of Oniguruma
6.9.1; no more need to patch.
|
| |
| |
| |
| | |
We backport kkos/oniguruma@15c4228aa2ffa02140a99912dd3177df0b1841c6.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.2:
Fix #78609: mb_check_encoding() no longer supports stringable objects
|
| |
| |
| |
| | |
We apply type juggling for other types than array.
|
| |
| |
| |
| | |
We backport kkos/oniguruma@d3e402928b6eb3327f8f7d59a9edfa622fec557b.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.2:
Fix #78579: mb_decode_numericentity: args number inconsistency
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
mb_decode_numericentity() accepts a fourth optional parameter, which is
unused, however. Since this parameter doesn't do any harm, and to avoid
the small BC break, we're keeping this parameter for PHP 7, but adjust
the arginfo.
For PHP 8, we will remove this parameter.
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
* PHP-7.2:
Fix CVE-2019-13224: don't allow different encodings for onig_new_deluxe()
set version for release
|
| |\
| | |
| | |
| | |
| | |
| | | |
* PHP-7.1:
Fix CVE-2019-13224: don't allow different encodings for onig_new_deluxe()
set version for release
|
| | |
| | |
| | |
| | | |
Backport from https://github.com/kkos/oniguruma/commit/0f7f61ed1b7b697e283e37bd2d731d0bd57adb55
|
|\ \ \
| |/ / |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* mb-limit-73:
Add fallbacks for older oniguruma versions
Add mbstring.regex_stack_limit to php.ini-*
Implement RF bug #72777 - ensure stack limits on mbstring functions.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The patch creates new config: mbstring.regex_stack_limit, which
defaults to 100000.
|
| | | | |
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | | |
* PHP-7.2:
Fixed SKIPIF when --disable-mbregex is used
|
| | | | |
|
|\ \ \ \
| |/ / /
| | / /
| |/ /
|/| |
| | |
| | | |
* PHP-7.2:
Validate subject encoding in mb_split and mb_ereg_match
Validate pattern against mbregex encoding
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
|
| |\ \
| | |/
| | |
| | |
| | |
| | |
| | | |
* PHP-7.1:
Validate subject encoding in mb_split and mb_ereg_match
Validate pattern against mbregex encoding
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
|
| | |
| | |
| | |
| | |
| | | |
We were already validating the subject encoding in most functions,
but not these two.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Oniguruma does not consistently perform this validation itself (at least
on older versions), so make sure we check pattern encoding validity on the
PHP side.
|
| | | |
|
|\ \ \
| |/ / |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
mb_ereg_replace historically has not supported escaping backslashes
with backslashes. Go back to that behavior for BC reasons.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.2:
cleanup merge
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* PHP-7.2:
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
Add NEWS
[ci skip] Add NEWS
Fix more issues with encodilng length
Fix #77270: imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269: Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
|
| |\ \
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* PHP-7.1:
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
Add NEWS
[ci skip] Add NEWS
Fix more issues with encodilng length
Fix #77270: imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269: Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
|
| | |\
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* PHP-5.6:
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
[ci skip] Add NEWS
Fix more issues with encodilng length
Fix #77270: imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269: Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Should fix bug #77381, bug #77382, bug #77385, bug #77394.
|
| | | |
| | | |
| | | |
| | | | |
compile_string_node)
|
| | | |
| | | |
| | | |
| | | | |
multibytes
|