Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57346 - trunk/boost/xpressive
From: eric_at_[hidden]
Date: 2009-11-03 18:44:59


Author: eric_niebler
Date: 2009-11-03 18:44:59 EST (Tue, 03 Nov 2009)
New Revision: 57346
URL: http://svn.boost.org/trac/boost/changeset/57346

Log:
fix infinite loop with some uses of \Q...\E quotemeta, fixes #3586
Text files modified:
   trunk/boost/xpressive/regex_compiler.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/boost/xpressive/regex_compiler.hpp
==============================================================================
--- trunk/boost/xpressive/regex_compiler.hpp (original)
+++ trunk/boost/xpressive/regex_compiler.hpp 2009-11-03 18:44:59 EST (Tue, 03 Nov 2009)
@@ -690,6 +690,7 @@
             {
             case token_quote_meta_end: return string_type(old_begin, old_end);
             case token_escape: BOOST_XPR_ENSURE_(begin != end, error_escape, "incomplete escape sequence");
+ case token_invalid_quantifier:
             case token_literal: ++begin;
             default:;
             }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk