[Boost-bugs] [Boost C++ Libraries] #8391: boost::local_time::tz_database::load_from_file uses unchecked iterator

Subject: [Boost-bugs] [Boost C++ Libraries] #8391: boost::local_time::tz_database::load_from_file uses unchecked iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-04 12:25:03


#8391: boost::local_time::tz_database::load_from_file uses unchecked iterator
----------------------------------------+-----------------------------------
 Reporter: frank.oosterhuis@… | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: date_time
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
----------------------------------------+-----------------------------------
 Program exits with:

 /usr/local/include/boost/token_iterator.hpp:56: const Type&
 boost::token_iterator<TokenizerFunc, Iterator, Type>::dereference() const
 [with TokenizerFunc = boost::char_separator<char, std::char_traits<char>
>, Iterator = __gnu_cxx::__normal_iterator<const char*,
 std::basic_string<char> >, Type = std::basic_string<char>]: Assertion
 `valid_' failed.


 /boost/date_time/tz_db_base.hpp:

 tokenizer_iterator tok_iter = tokens.begin();

 tok_iter should be verified before using atoi().

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