From: Stanislav Malyshev Date: Mon, 21 Oct 2013 04:57:33 +0000 (-0700) Subject: fix possibility of access to *storedType without initialization X-Git-Tag: php-5.6.0alpha1~227^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=219a682e8e977ebe1df49c29c51d52a044a09f8f;p=php fix possibility of access to *storedType without initialization --- diff --git a/ext/intl/msgformat/msgformat_helpers.cpp b/ext/intl/msgformat/msgformat_helpers.cpp index c4456d54f3..f75fd91dce 100644 --- a/ext/intl/msgformat/msgformat_helpers.cpp +++ b/ext/intl/msgformat/msgformat_helpers.cpp @@ -209,6 +209,9 @@ static HashTable *umsg_parse_format(MessageFormatter_object *mfo, continue; } } + } else { + intl_errors_set(&err, U_INVALID_FORMAT_ERROR, "Invalid part type encountered", 0 TSRMLS_CC); + continue; } UMessagePatternArgType argType = p.getArgType();