Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13036: Boost.Regex: Integer overflow during calculation of max_state_count
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-07-03 21:51:54
#13036: Boost.Regex: Integer overflow during calculation of max_state_count
--------------------------------------+------------------------------------
Reporter: anonymous | Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: regex max_state_count
--------------------------------------+------------------------------------
Comment (by Brian Minard <bminard@â¦>):
I did not report this issue, but have attached a reproducer.
A patch: https://github.com/boostorg/regex/pull/32.
FWIW, overflow occurs when the states variable is greater than sqrt(2^31)
(on a 32-bit platform).
The value of the states variable is implementation dependent whenever
re.size() returns a value greater than
std::numeric_limits<std::ptrdiff_t>::max() (size() method returns a value
of type std::size_t.)
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13036#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-07-03 21:57:49 UTC