summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2016-09-05 18:01:35 -0700
committerStanislav Malyshev <stas@php.net>2016-09-12 21:04:23 -0700
commit6d55ba265637d6adf0ba7e9c9ef11187d1ec2f5b (patch)
tree013dc1296287ac80b394cb1e797f22dbf35a838a
parentba5ac0d360f0f2cab3ab5a478c601e4071acd0f2 (diff)
downloadphp-git-6d55ba265637d6adf0ba7e9c9ef11187d1ec2f5b.tar.gz
Fix bug #73007: add locale length check
-rw-r--r--ext/intl/msgformat/msgformat_format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/intl/msgformat/msgformat_format.c b/ext/intl/msgformat/msgformat_format.c
index 25c9619133..9b6df38ee3 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) {