[Boost-bugs] [Boost C++ Libraries] #5612: basic_regex class constructor stack overflow

Subject: [Boost-bugs] [Boost C++ Libraries] #5612: basic_regex class constructor stack overflow
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-16 05:44:30


#5612: basic_regex class constructor stack overflow
----------------------------------------------------+-----------------------
 Reporter: Yang Dingning <yangdingning@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
----------------------------------------------------+-----------------------
 Compile and run the following code:

 {{{
 #include <boost/regex.hpp>

 int main()
 {
         boost::regex reg("((?1)|a)");
         return 0;
 }
 }}}

 Recursive calls to basic_regex_creator<charT, traits>::create_startmap()
 would consume all available stack space and crash the program, causing
 denial of service.

 This problem has been verified to exist in Boost 1.46.1, and also in trunk
 code as of Jun. 9.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5612>
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:06 UTC