]> granicus.if.org Git - php/commitdiff
fix possibility of access to *storedType without initialization
authorStanislav Malyshev <stas@php.net>
Mon, 21 Oct 2013 04:57:33 +0000 (21:57 -0700)
committerStanislav Malyshev <stas@php.net>
Mon, 21 Oct 2013 06:04:38 +0000 (23:04 -0700)
ext/intl/msgformat/msgformat_helpers.cpp

index c4456d54f3c84b78e4bafe8acbabeda3ad9e7b54..f75fd91dce77521ff9fdbdc0b9ad66a29353d766 100644 (file)
@@ -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();