Subject: [Boost-bugs] [Boost C++ Libraries] #4030: read_graphviz() reads too much
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-21 23:03:57
#4030: read_graphviz() reads too much
--------------------------+-------------------------------------------------
Reporter: anonymous | Owner: asutton
Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: graph
Version: Boost 1.42.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
Forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573494
boost::read_graphviz() is a function that reads a graph in graphviz dot
language from a stream. These graphs are of the form
[ strict ] (graph | digraph) [ ID ] '{' stmt_list '}'
e.g.
graph {
0;
1;
1 -- 0;
}
However boost::read_graphviz() does not stop reading at the terminating
}. Instead it goes on reading until EOF. This is bad when reading from a
stream that is not an ifstream from a file containing exactly one graph.
boost::read_graphviz() should stop reading after the terminating }.
Philipp Klaus Krause
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4030> 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:02 UTC