com php-src: fix possibility of access to *storedType without initialization: ext/intl/msgformat/msgformat_helpers.cpp
| From: | Stanislav Malyshev | Date: | Mon, 21 Oct 2013 06:04:38 +0000 |
| Subject: | com php-src: fix possibility of access to *storedType without initialization: ext/intl/msgformat/msgformat_helpers.cpp | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73762@lists.php.net to get a copy of this message | ||
Commit: 219a682e8e977ebe1df49c29c51d52a044a09f8f
Author: Stanislav Malyshev <stas@php.net> Sun, 20 Oct 2013 21:57:33 -0700
Parents: ec2e6951b8bf19b6af1653a9c9dc35853e629118
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=219a682e8e977ebe1df49c29c51d52a044a09f8f
Log:
fix possibility of access to *storedType without initialization
Changed paths:
M ext/intl/msgformat/msgformat_helpers.cpp
Diff:
diff --git a/ext/intl/msgformat/msgformat_helpers.cpp b/ext/intl/msgformat/msgformat_helpers.cpp
index c4456d5..f75fd91 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();