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

From: Date: Tue, 13 Sep 2016 04:04:23 +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-94452@lists.php.net to get a copy of this message
Commit: 6d55ba265637d6adf0ba7e9c9ef11187d1ec2f5b Author: Stanislav Malyshev <stas@php.net> Mon, 5 Sep 2016 18:01:35 -0700 Parents: ba5ac0d360f0f2cab3ab5a478c601e4071acd0f2 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6d55ba265637d6adf0ba7e9c9ef11187d1ec2f5b Log: Fix bug #73007: add locale length check 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 25c9619..9b6df38 100644 --- a/ext/intl/msgformat/msgformat_format.c +++ b/ext/intl/msgformat/msgformat_format.c @@ -117,6 +117,8 @@ PHP_FUNCTION( msgfmt_format_message ) RETURN_FALSE; } + INTL_CHECK_LOCALE_LEN(slocale_len); + msgformat_data_init(&mfo->mf_data TSRMLS_CC); if(pattern && pattern_len) {

« previous php.cvs (#94452) next »