Re: com php-src: Fix bug #72910: ext/mbstring/oniguruma/enc/utf8.c
| From: | Yasuo Ohgaki | Date: | Fri, 25 Nov 2016 06:53:18 +0000 |
| Subject: | Re: com php-src: Fix bug #72910: ext/mbstring/oniguruma/enc/utf8.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-96031@lists.php.net to get a copy of this message | ||
It seems committed fix is incomplete.
Final upstream patch is
https://github.com/kkos/oniguruma/commit/151b6b42599d2f8aa10edd4114ce84815ec2efc5
Upstream issue is
https://github.com/kkos/oniguruma/issues/16
--
Yasuo Ohgaki
yohgaki@ohgaki.net
On Thu, Sep 15, 2016 at 4:53 PM, Ferenc Kovacs <tyrael@php.net> wrote:
> Commit: 486056b2153f7177cd8a7c78d93968726ee8fa65
> Author: Stanislav Malyshev <stas@php.net> Thu, 1 Sep 2016 23:27:06 -0700
> Committer: Ferenc Kovacs <tyra3l@gmail.com> Thu, 15 Sep 2016 09:53:09 +0200
> Parents: cb49f418301b58e83dbd869a4b1f222b1a8d7208
> Branches: PHP-5.6.26
>
> Link:
> http://git.php.net/?p=php-src.git;a=commitdiff;h=486056b2153f7177cd8a7c78d93968726ee8fa65
>
> Log:
> Fix bug #72910
>
> Merge upstream patch from
> https://github.com/kkos/oniguruma/commit/65bdf2a0d160d06556415e5f396a75f6b11bad5c
>
> Bugs:
> https://bugs.php.net/72910
>
> Changed paths:
> M ext/mbstring/oniguruma/enc/utf8.c
>
>
> Diff:
> diff --git a/ext/mbstring/oniguruma/enc/utf8.c b/ext/mbstring/oniguruma/enc/utf8.c
> index 5e2c172..74122e1 100644
> --- a/ext/mbstring/oniguruma/enc/utf8.c
> +++ b/ext/mbstring/oniguruma/enc/utf8.c
> @@ -98,7 +98,7 @@ mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED)
>
> len = enclen(ONIG_ENCODING_UTF8, p);
> c = *p++;
> - if (len > 1) {
> + if (len > 1 && p < end) {
> len--;
> n = c & ((1 << (6 - len)) - 1);
> while (len--) {
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>