Re: [Boost-bugs] [Boost C++ Libraries] #8630: uuid string generator accepts invalid uuids

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8630: uuid string generator accepts invalid uuids
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-28 15:22:05


#8630: uuid string generator accepts invalid uuids
----------------------------------+-----------------------------------
  Reporter: record.nctu.cis91@… | Owner: atompkins
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: uuid
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords: uuid string generator
----------------------------------+-----------------------------------

Comment (by anonymous):

 I think
 {{{#!C++
 char const* d = std::find(digits_begin, digits_end, c);
 return values[d - digits_begin];
 }}}
 should be
 {{{#!C++
 char const* d = std::find(digits_begin, digits_end, c);
 if (d == digits_end)
     throw_invalid();
 return values[d - digits_begin];
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8630#comment:1>
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:17 UTC