com php-src: fix possibility of access to *storedType without initialization: ext/intl/msgformat/msgformat_helpers.cpp

From: Date: Mon, 21 Oct 2013 04:57:33 +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-73757@lists.php.net to get a copy of this message
Commit: 646813a37a061763656829ab6470231aa6f38d33 Author: Stanislav Malyshev <stas@php.net> Sun, 20 Oct 2013 21:57:33 -0700 Parents: 9e4651f6f181e0d90daab2a97fb57a76fe105a29 Branches: PHP-5.5 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=646813a37a061763656829ab6470231aa6f38d33 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();

« previous php.cvs (#73757) next »