diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-03-14 14:59:38 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-03-14 14:59:38 +0000 |
| commit | 15439a80e17e99ae03c056067a5daa1e71282242 (patch) | |
| tree | 30ff78f8c03c9535bb073b8a072b9325e990e411 /cpp/src | |
| parent | 3a2f8910d5985b35ec1c0899d74c230459b1fafb (diff) | |
| download | qpid-python-15439a80e17e99ae03c056067a5daa1e71282242.tar.gz | |
QPID-4558: Fix string iterator being dereferenced 1 beyond end().
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1456464 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qpid/broker/SelectorToken.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/SelectorToken.cpp b/cpp/src/qpid/broker/SelectorToken.cpp index 3fd4abbc49..3540ee158f 100644 --- a/cpp/src/qpid/broker/SelectorToken.cpp +++ b/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; |
