Re: [Boost-bugs] [Boost C++ Libraries] #4622: clear_vertex on a vertex with a self-loop can cause a segmentation fault

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4622: clear_vertex on a vertex with a self-loop can cause a segmentation fault
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-10 22:20:16


#4622: clear_vertex on a vertex with a self-loop can cause a segmentation fault
--------------------------------------+-------------------------------------
  Reporter: dtrebbien@… | Owner: asutton
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: graph
   Version: Boost Development Trunk | Severity: Problem
Resolution: fixed | Keywords:
--------------------------------------+-------------------------------------

Comment (by endecotp):

 The fixed version still seems wrong. Consider a vertex in an undirected
 graph with only self-loops. The current code will do nothing inside the
 loop, and then clear the out_edge_list. The problem is that m_edges has
 not been updated to remove these edges. When I subsequently iterate over
 all the edges in the graph, I still find these edges (and then crash).

 This is the first time that I've ever used Boost.Graph so it's possible
 that I'm misunderstanding something...

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