commit-graph: fix buffer read-overflow
[gitweb.git] / commit-graph.h
index 9db40b4d3aadb75b4dcea5027d07d373bdf169e1..813e7c19f127565c384df456907e654ffe9eafa3 100644 (file)
@@ -54,6 +54,9 @@ struct commit_graph {
 
 struct commit_graph *load_commit_graph_one(const char *graph_file);
 
+struct commit_graph *parse_commit_graph(void *graph_map, int fd,
+                                       size_t graph_size);
+
 /*
  * Return 1 if and only if the repository has a commit-graph
  * file and generation numbers are computed in that file.