summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2013-03-14 14:59:38 +0000
committerAndrew Stitcher <astitcher@apache.org>2013-03-14 14:59:38 +0000
commita6758e9bb48c9ba985975f9af1e0db5105d7aaf8 (patch)
tree9dd0a354b919e6a32ecd07ab8f1b62179e9df706
parentfb9d3c66081989bf765f64ceacc8040016688eb3 (diff)
downloadqpid-python-a6758e9bb48c9ba985975f9af1e0db5105d7aaf8.tar.gz
QPID-4558: Fix string iterator being dereferenced 1 beyond end().
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1456464 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/qpid/broker/SelectorToken.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/SelectorToken.cpp b/qpid/cpp/src/qpid/broker/SelectorToken.cpp
index 3fd4abbc49..3540ee158f 100644
--- a/qpid/cpp/src/qpid/broker/SelectorToken.cpp
+++ b/qpid/cpp/src/qpid/broker/SelectorToken.cpp
@@ -77,7 +77,7 @@ bool tokeniseIdentifier(std::string::const_iterator& s, std::string::const_itera
std::string::const_iterator t = s;
- while ( s!=e && isIdentifierPart(*++s) );
+ while ( ++s!=e && isIdentifierPart(*s) );
tok = Token(T_IDENTIFIER, t, s);
@@ -214,7 +214,7 @@ bool tokeniseOperator(std::string::const_iterator& s, std::string::const_iterato
std::string::const_iterator t = s;
- while (s!=e && isOperatorPart(*++s));
+ while (++s!=e && isOperatorPart(*s));
tok = Token(T_OPERATOR, t, s);
return true;