[Boost-bugs] [Boost C++ Libraries] #3936: [xpressive] stack overflow.

Subject: [Boost-bugs] [Boost C++ Libraries] #3936: [xpressive] stack overflow.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-16 14:56:21


#3936: [xpressive] stack overflow.
----------------------------------+-----------------------------------------
 Reporter: shewitt.au@… | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: xpressive
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
----------------------------------+-----------------------------------------
 The following simple program fires a stack overflow exception in
 xpressive. It's seems too simple to be causing such problems.

 {{{#include "stdafx.h"
 #include <string>
 #include <boost/xpressive/xpressive.hpp>
 using namespace boost::xpressive;


 int _tmain(int argc, _TCHAR* argv[])
 {
         sregex rx = ~(set='{', '}', ',');
         sregex rx2 = +rx;

         std::string s(10000, 'a');
         regex_search(s, rx2);

         return 0;
 }}}}

 I'm using MSVC 2005. The problem only occurs if the string is large.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3936>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC