Re: [Boost-bugs] [Boost C++ Libraries] #2195: [uBlas] compressed_matrix::erase_element() segfaults

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2195: [uBlas] compressed_matrix::erase_element() segfaults
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-22 20:58:35


#2195: [uBlas] compressed_matrix::erase_element() segfaults
-----------------------------------------------+----------------------------
  Reporter: Niko Vuokko <niko.vuokko_at_[hidden]> | Owner: guwi17
      Type: Bugs | Status: assigned
 Milestone: Boost 1.40.0 | Component: uBLAS
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: compressed_matrix erase_element
-----------------------------------------------+----------------------------

Comment(by guwi17):

 (In [54231]) matrix_sparse.hpp - see #2195, fixed
 compressed_matrix::erase_element(); must use >= instead of > because the
 last element of index1_data is the "end of list" marker. Segfault was
 caused by *(itv + 1) which pointed to an element _after_ index1_data.end()

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2195#comment:4>
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:00 UTC