[pkg-boost-devel] Bug#573494: read_graphviz() reads to much

Philipp Klaus Krause pkk at spth.de
Thu Mar 11 21:29:38 UTC 2010


Package: libboost-graph1.42.0
Version: 1.42.0-3

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





More information about the pkg-boost-devel mailing list