commit-graph: fix buffer read-overflow
[gitweb.git] / commit-graph.h
index 5678a8f4cad2ddec9c7c50a31f0a54abc026f951..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.
@@ -69,6 +72,7 @@ void write_commit_graph(const char *obj_dir,
 
 int verify_commit_graph(struct repository *r, struct commit_graph *g);
 
+void close_commit_graph(struct repository *);
 void free_commit_graph(struct commit_graph *);
 
 #endif