Skip to content

Commit 6d55ba2

Browse files
committed
Fix bug #73007: add locale length check
1 parent ba5ac0d commit 6d55ba2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: ext/intl/msgformat/msgformat_format.c

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ PHP_FUNCTION( msgfmt_format_message )
117117
RETURN_FALSE;
118118
}
119119

120+
INTL_CHECK_LOCALE_LEN(slocale_len);
121+
120122
msgformat_data_init(&mfo->mf_data TSRMLS_CC);
121123

122124
if(pattern && pattern_len) {

0 commit comments

Comments
 (0)