From 92db16e456ed346d0526c840750213317ac0f067 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 5 Sep 2016 18:01:35 -0700 Subject: Fix bug #73007: add locale length check (cherry picked from commit 9e07089626f373d0e7b24b7aeb8b8459aae5f5f8) Conflicts: ext/intl/msgformat/msgformat_format.c --- ext/intl/msgformat/msgformat_format.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.1