Subject: [Boost-bugs] [Boost C++ Libraries] #7048: Iterator's value is not checked properly in range_run class.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-29 07:01:55
#7048: Iterator's value is not checked properly in range_run class.
---------------------------------+------------------------------------------
Reporter: g.gupta@⦠| Owner: djowel
Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
Version: Boost 1.50.0 | Severity: Problem
Keywords: |
---------------------------------+------------------------------------------
In File boost/spirit/home/classic/utility/impl/chset/range_run.ipp
[[BR]]
[[BR]]
{{{
if (iter != run.end() && iter->includes(v))
return true;
if (iter != run.begin())
return (--iter)->includes(v);
}
return false;
}}}
[[BR]]
Here '''iter = run.end()''' condition is not checked.[[BR]]So, attached
patch is the fix for it.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7048> 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:09 UTC