Subject: [Boost-bugs] [Boost C++ Libraries] #11792: Boost convert will dereference empty strings iterators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-12 19:15:55
#11792: Boost convert will dereference empty strings iterators
-----------------------+------------------------------
Reporter: anonymous | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.59.0
Severity: Problem | Keywords:
-----------------------+------------------------------
The dereference can be found in `boost/convert/base.hpp`:`to_str_` (line
108 in boost 1.59.0).
{{{
/**/ if (skipws_) for (; std::isspace(*range.begin()); ++range);
else if (std::isspace(*range.begin())) return;
}}}
`range` should be checked to see if it is empty before it is dereferenced.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11792> 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:19 UTC