diff options
author | Stanislav Malyshev <stas@php.net> | 2016-09-05 18:01:35 -0700 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-09-12 17:19:47 +0200 |
commit | 92db16e456ed346d0526c840750213317ac0f067 (patch) | |
tree | 86c565fe4eb1fda4d4a9030aa8471433dc8c7254 | |
parent | 0bfb970f43acd1e81d11be1154805f86655f15d5 (diff) | |
download | php-git-92db16e456ed346d0526c840750213317ac0f067.tar.gz |
Fix bug #73007: add locale length check
(cherry picked from commit 9e07089626f373d0e7b24b7aeb8b8459aae5f5f8)
Conflicts:
ext/intl/msgformat/msgformat_format.c
-rw-r--r-- | ext/intl/msgformat/msgformat_format.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/intl/msgformat/msgformat_format.c b/ext/intl/msgformat/msgformat_format.c index 73fb5eeff6..cb74a3fb1b 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); |