com php-src: Fix bug #73007: add locale length check: ext/intl/msgformat/msgformat_format.c

From: Date: Mon, 12 Sep 2016 15:19:47 +0000
Subject: com php-src: Fix bug #73007: add locale length check: ext/intl/msgformat/msgformat_format.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94463@lists.php.net to get a copy of this message
Commit: 92db16e456ed346d0526c840750213317ac0f067 Author: Stanislav Malyshev <stas@php.net> Mon, 5 Sep 2016 18:01:35 -0700 Committer: Anatol Belski <ab@php.net> Mon, 12 Sep 2016 17:19:47 +0200 Parents: 0bfb970f43acd1e81d11be1154805f86655f15d5 Branches: PHP-7.0.11 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=92db16e456ed346d0526c840750213317ac0f067 Log: Fix bug #73007: add locale length check (cherry picked from commit 9e07089626f373d0e7b24b7aeb8b8459aae5f5f8) Conflicts: ext/intl/msgformat/msgformat_format.c Bugs: https://bugs.php.net/73007 Changed paths: M ext/intl/msgformat/msgformat_format.c Diff: diff --git a/ext/intl/msgformat/msgformat_format.c b/ext/intl/msgformat/msgformat_format.c index 73fb5ee..cb74a3f 100644 --- a/ext/intl/msgformat/msgformat_format.c +++ b/ext/intl/msgformat/msgformat_format.c @@ -116,6 +116,8 @@ PHP_FUNCTION( msgfmt_format_message ) RETURN_FALSE; } + INTL_CHECK_LOCALE_LEN(slocale_len); + memset(mfo, 0, sizeof(*mfo)); msgformat_data_init(&mfo->mf_data);

« previous php.cvs (#94463) next »