File php-CVE-2016-7416.patch of Package php5.11538

X-Git-Url: http://72.52.91.13:8000/?p=php-src.git;a=blobdiff_plain;f=ext%2Fintl%2Fmsgformat%2Fmsgformat_format.c;h=9b6df38ee398951292c2d85f4cdc2bca0545f475;hp=25c9619133d6fe8d6cd32d2702b0eb4cf829efe2;hb=20fa323d53257a776bd7551ce7bdb2261cfe5420;hpb=cda085c23565518324e6c97b0ce89090e3b92f84

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) {

openSUSE Build Service is sponsored by