Re: [Boost-bugs] [Boost C++ Libraries] #7959: regex lookahead fails at about 95, 000 chars

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7959: regex lookahead fails at about 95, 000 chars
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-01 09:53:22


#7959: regex lookahead fails at about 95,000 chars
---------------------------------+------------------------------------------
  Reporter: michael@… | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: regex
   Version: Boost 1.52.0 | Severity: Problem
Resolution: wontfix | Keywords:
---------------------------------+------------------------------------------
Changes (by johnmaddock):

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

Comment:

 If you catch the exception you will see that it says:

 "Ran out of stack space trying to match the regular expression."

 Basically Regex sets an upper limit on how much memory it will grab when
 trying to find a match. If you up the values of BOOST_REGEX_MAX_BLOCKS
 and/or BOOST_REGEX_BLOCKSIZE in boost/regex/user.hpp and then rebuild
 everything (including the library), then the issue will disappear - or at
 least get shifted to larger texts before you hit the limit. Obviously if
 you set BOOST_REGEX_MAX_BLOCKS to something like INT_MAX then there is no
 limit - whether you think that's a good idea I'll leave up to you!

 But basically this is by design.

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