Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3299: boost regex regex_search crash
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-04 13:17:21
#3299: boost regex regex_search crash
------------------------------+---------------------------------------------
Reporter: ufwt@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: regex
Version: Boost 1.37.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
Comment(by ufwt@â¦):
crash example:
boost::regex
re("[a-z].*(d_notexiststring)",boost::regex::perl|boost::regex::no_except);
std::string s="f";
s.append(1024*100,'a');
s.append("dd");
boost::match_results<std::string::const_iterator> what;
boost::match_flag_type flags = boost::match_default;
std::string::const_iterator start, end;
start = s.begin();
end = s.end();
boost::regex_search(start,end,what,re,flags);
except:
uncaught exception of type
boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error>
>
- Memory exhausted
raise at state_count > max_state_count
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3299#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:00 UTC