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-03 16:56:19


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

  * status: new => closed
  * resolution: => invalid

Comment:

 The program throws a std::runtime_error because the match was taking too
 long to find - without a try-catch block around the code there is a stack
 error (I don't understand that one), but with a try-catch block the
 exception is caught and everything is behaving as expected.

 Is there a reason for the leading .* in the expression? It serves no good
 purpose other than to make the expression harder to match - you can get
 the same information from match_results::prefix() and way better
 performance.

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