Boost C++ Libraries: Ticket #2658: Problems in read_dimacs_max_flow https://svn.boost.org/trac10/ticket/2658 <p> There two problems I noticed using read_dimacs_max_flow : </p> <ol><li>First, at the end of the parsing loop, a conditional test is done : if ( feof (stdin) == 0 ) /* reading error */ </li></ol><blockquote> <p> { err_no=EN21; goto error; } </p> </blockquote> <p> As the loop is dealing with "std::istream&amp; in=std::cin" I assume it's a mistake. </p> <ol start="2"><li>"capacity" and "reverse_edge" are not referenced </li></ol><p> int read_dimacs_max_flow(Graph&amp; g, </p> <blockquote> <p> <a class="missing wiki">CapacityMap</a> capacity, <a class="missing wiki">ReverseEdgeMap</a> reverse_edge, typename graph_traits&lt;Graph&gt;::vertex_descriptor&amp; src, typename graph_traits&lt;Graph&gt;::vertex_descriptor&amp; sink, std::istream&amp; in=std::cin) </p> </blockquote> <ol start="3"><li>Even with documentation examples I have this message : </li></ol><p> malloc: <strong>* error for object 0x1000f4: Non-aligned pointer being freed </strong></p> <p> Regards </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2658 Trac 1.4.3 Steven Watanabe Thu, 15 Jan 2009 19:16:44 GMT component changed; owner set https://svn.boost.org/trac10/ticket/2658#comment:1 https://svn.boost.org/trac10/ticket/2658#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Douglas Gregor</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">graph</span> </li> </ul> Ticket Jeremiah Willcock Tue, 27 Jan 2009 18:03:17 GMT owner, status changed https://svn.boost.org/trac10/ticket/2658#comment:2 https://svn.boost.org/trac10/ticket/2658#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Jeremiah Willcock</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Jeremiah Willcock Tue, 27 Jan 2009 18:04:23 GMT <link>https://svn.boost.org/trac10/ticket/2658#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2658#comment:3</guid> <description> <p> The first two parts of the bug report should be fixed now (point 1 in <a class="changeset" href="https://svn.boost.org/trac10/changeset/50806" title="Fixing two parts of #2658; not sure about point 3 of that report">r50806</a> and point 2 at an undetermined time in the past). Could the submitter please test point 3 again? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Wed, 28 Jan 2009 19:36:41 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2658#comment:4 https://svn.boost.org/trac10/ticket/2658#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Closing unless someone reports problem 3 again. </p> Ticket