Re: [Boost-bugs] [Boost C++ Libraries] #11792: Boost convert will dereference empty strings iterators

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11792: Boost convert will dereference empty strings iterators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-18 05:58:54


#11792: Boost convert will dereference empty strings iterators
-------------------------------+---------------------
  Reporter: anonymous | Owner:
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.59.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------

Comment (by vbmail247@…):

 Replying to [comment:1 anonymous]:
> I made a pull request here:
>
> https://github.com/boostorg/convert/pull/22
>
> Not sure if it's the right way to go about it
> (both doing a pull request and the proposed fix itself).

 Yes, indeed. The code currently does not handle empty strings. Missed
 that. Thank you. Unfortunately, adding "if (str.empty())" only works for
 std::string when str_to_() was meant to support C strings and user strings
 as well. After a brief look the change will probably have to go to the
 cnv::range constructor specializations. Let me think about it. I'll
 address it ASAP.

 Thank you,
 Vladimir.

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