Re: [Boost-bugs] [Boost C++ Libraries] #1531: segfault in dynamic_bitset::reference assign operator

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1531: segfault in dynamic_bitset::reference assign operator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-07-07 19:19:30


#1531: segfault in dynamic_bitset::reference assign operator
--------------------------------------+-------------------------------------
  Reporter: ben.collins_at_[hidden] | Owner: jsiek
      Type: Bugs | Status: closed
 Milestone: Boost 1.36.0 | Component: dynamic_bitset
   Version: Boost Development Trunk | Severity: Problem
Resolution: invalid | Keywords: dynamic_bitset
--------------------------------------+-------------------------------------
Changes (by gennaro_prota):

 * cc: gennaro.prota_at_[hidden] (added)
  * status: new => closed
  * resolution: => invalid

Comment:

 This isn't a bug: as noted in the previous comment, the size of {{{bset}}}
 is zero, and evaluating {{{bset[0]}}} violates the precondition {{{n <
 this->size()}}}, which holds for both the {{{operator[]()}}} members, and
 thus invokes '''undefined behavior'''.

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1531#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:49:58 UTC