Re: [Boost-bugs] [Boost C++ Libraries] #4095: array subscript is above array bounds warning

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4095: array subscript is above array bounds warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-06 21:03:42


#4095: array subscript is above array bounds warning
----------------------------------------+-----------------------------------
  Reporter: tfogal at sci -- utah.edu | Owner: rogeeff
      Type: Bugs | Status: closed
 Milestone: Boost 1.43.0 | Component: test
   Version: Boost 1.42.0 | Severity: Problem
Resolution: wontfix | Keywords:
----------------------------------------+-----------------------------------

Comment (by anonymous):

 Possible workaround if you're stuck with a broken compiler:
 {{{

 $ diff -u boost_1_47_0/boost/test/impl/debug.ipp
 install_1_47_0/include/boost/test/impl/debug.ipp
 --- boost_1_47_0/boost/test/impl/debug.ipp 2011-10-06
 17:00:22.102991319 -0400
 +++ install_1_47_0/include/boost/test/impl/debug.ipp 2011-10-06
 17:00:14.483359431 -0400
 @@ -307,7 +307,8 @@

      static char title_str[50];

 - str_t path_sep( "\\/" );
 + //str_t path_sep( "\\/" );
 + const std::string path_sep( "\\/" );

      str_t::iterator it = unit_test::find_last_of(
 dsi.binary_path.begin(), dsi.binary_path.end(),
                                                     path_sep.begin(),
 path_sep.end() );
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4095#comment:2>
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:07 UTC