com php-src: Fix bug #72910: ext/mbstring/oniguruma/enc/utf8.c

From: Date: Thu, 15 Sep 2016 07:53:09 +0000
Subject: com php-src: Fix bug #72910: ext/mbstring/oniguruma/enc/utf8.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94549@lists.php.net to get a copy of this message
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--) {

« previous php.cvs (#94549) next »