Re: [Boost-bugs] [Boost C++ Libraries] #7758: Regex will create stack error after upgrade of boost

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7758: Regex will create stack error after upgrade of boost
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-04 16:46:31


#7758: Regex will create stack error after upgrade of boost
-------------------------------------+--------------------------------------
  Reporter: david.ecker@… | Owner: johnmaddock
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: regex
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------+--------------------------------------

Comment (by anonymous):

 Investigating some more I believe you are correct - I'm testing a fix now
 (there's an optimization heuristic that's used almost everywhere else, but
 not for .* for some strange reason).

 In the mean time, try building both Boost and your code with
 BOOST_REGEX_RECURSIVE defined as the issue doesn't occur in the stack-
 recursive implementation. Unfortunately, you should be aware that that
 implementation (with BOOST_REGEX_RECURSIVE defined) isn't really
 considered safe to use with VC10, as it's harder to safely trap stack
 overflows (and throw an exception) than it was in earlier Visual Studio
 releases. Of course nearly every other regex implementation out there is
 stack recursive and also has this issue...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7758#comment:4>
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:11 UTC