Re: [Boost-bugs] [Boost C++ Libraries] #9216: format_date_parser::parse_date reads off end of format_str if it ends with a %

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9216: format_date_parser::parse_date reads off end of format_str if it ends with a %
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-09 18:27:15


#9216: format_date_parser::parse_date reads off end of format_str if it ends with
a %
-----------------------------------+-----------------------
  Reporter: Roger Orr <rogero@…> | Owner: marshall
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: date_time
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------+-----------------------

Comment (by marshall):

 Roger -

 Can you make the following change to your local install and re-run your
 test?

  {{{
        while (itr != format_str.end() && (sitr != stream_end)) {
       if (*itr == '%') {
 - itr++;
 + if ( ++itr == format_str.end()) break;
         if (*itr != '%') { // <<< ERROR here
 }}}

 Thanks!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9216#comment:3>
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:14 UTC