Modify

Ticket #5181 (closed Bugs: fixed)

Opened 3 years ago

Last modified 3 years ago

iterator invalidation problem in boost subgraph remove_edge_if

Reported by: joachim.falk@… Owned by: jewillco
Milestone: To Be Determined Component: graph
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc: christian.zebelein@…

Description

remove_edge_if in subgraph.hpp goes on to note that remove_edge(*ep.first, g); will invalidate ep.first but then goes on using said iterator by using continue instead of break.

Attachments

subgraph-remove_edge_if.patch Download (275 bytes) - added by joachim.falk@… 3 years ago.
fix trivial iterator invalidation problem in remove_edge_if for subgraphs

Change History

Changed 3 years ago by joachim.falk@…

fix trivial iterator invalidation problem in remove_edge_if for subgraphs

comment:1 Changed 3 years ago by jewillco

  • Owner changed from asutton to jewillco
  • Status changed from new to assigned

comment:2 Changed 3 years ago by jewillco

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [68781]) Changed "continue" to "break" in remove_edge_if; fixes #5181

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.