Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix bug #73007: add locale length check
  • Loading branch information
smalyshev committed Sep 13, 2016
1 parent ba5ac0d commit 6d55ba2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/intl/msgformat/msgformat_format.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 6d55ba2

Please sign in to comment.