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

From: Date: Thu, 15 Sep 2016 08:03:11 +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-94548@lists.php.net to get a copy of this message
Commit: 20fa323d53257a776bd7551ce7bdb2261cfe5420 Author: Stanislav Malyshev <stas@php.net> Mon, 5 Sep 2016 18:01:35 -0700 Committer: Ferenc Kovacs <tyra3l@gmail.com> Thu, 15 Sep 2016 10:03:11 +0200 Parents: cda085c23565518324e6c97b0ce89090e3b92f84 Branches: PHP-5.6.26 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=20fa323d53257a776bd7551ce7bdb2261cfe5420 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 (#94548) next »