Opened 14 years ago

Closed 14 years ago

#2658 closed Bugs (fixed)

Problems in read_dimacs_max_flow

Reported by: julien.schleich@… Owned by: Jeremiah Willcock
Milestone: Boost 1.38.0 Component: graph
Version: Boost 1.37.0 Severity: Problem
Keywords: graph dimacs Cc:

Description

There two problems I noticed using read_dimacs_max_flow :

  1. First, at the end of the parsing loop, a conditional test is done : if ( feof (stdin) == 0 ) /* reading error */

{ err_no=EN21; goto error; }

As the loop is dealing with "std::istream& in=std::cin" I assume it's a mistake.

  1. "capacity" and "reverse_edge" are not referenced

int read_dimacs_max_flow(Graph& g,

CapacityMap capacity, ReverseEdgeMap reverse_edge, typename graph_traits<Graph>::vertex_descriptor& src, typename graph_traits<Graph>::vertex_descriptor& sink, std::istream& in=std::cin)

  1. Even with documentation examples I have this message :

malloc: * error for object 0x1000f4: Non-aligned pointer being freed

Regards

Change History (4)

comment:1 by Steven Watanabe, 14 years ago

Component: Nonegraph
Owner: set to Douglas Gregor

comment:2 by Jeremiah Willcock, 14 years ago

Owner: changed from Douglas Gregor to Jeremiah Willcock
Status: newassigned

comment:3 by Jeremiah Willcock, 14 years ago

The first two parts of the bug report should be fixed now (point 1 in r50806 and point 2 at an undetermined time in the past). Could the submitter please test point 3 again?

comment:4 by Jeremiah Willcock, 14 years ago

Resolution: fixed
Status: assignedclosed

Closing unless someone reports problem 3 again.

Note: See TracTickets for help on using tickets.