diff options
author | Stanislav Malyshev <stas@php.net> | 2013-10-20 21:57:33 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2013-10-20 23:04:38 -0700 |
commit | 219a682e8e977ebe1df49c29c51d52a044a09f8f (patch) | |
tree | 6e0de446a21685171b2d151a4aed4512fb58a440 /ext/intl/msgformat/msgformat_helpers.cpp | |
parent | ec2e6951b8bf19b6af1653a9c9dc35853e629118 (diff) | |
download | php-git-219a682e8e977ebe1df49c29c51d52a044a09f8f.tar.gz |
fix possibility of access to *storedType without initialization
Diffstat (limited to 'ext/intl/msgformat/msgformat_helpers.cpp')
-rw-r--r-- | ext/intl/msgformat/msgformat_helpers.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |