diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-02-05 14:26:11 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-02-05 14:26:11 -0800 |
| commit | 19a504d92bde1ba1936eb025c571fef7e6630e4b (patch) | |
| tree | 2b00135c87360ebc06849766eda52d9b75b16290 /commit-graph.h | |
| parent | 40b8ba2c4458bd1ed6d32092712c07a4fc26e256 (diff) | |
| parent | 8b7c2eee7d2e6470a6d5484614e491d4a4571d09 (diff) | |
| download | git-19a504d92bde1ba1936eb025c571fef7e6630e4b.tar.gz | |
Merge branch 'js/commit-graph-chunk-table-fix'
The codepath to read from the commit-graph file attempted to read
past the end of it when the file's table-of-contents was corrupt.
* js/commit-graph-chunk-table-fix:
Makefile: correct example fuzz build
commit-graph: fix buffer read-overflow
commit-graph, fuzz: add fuzzer for commit-graph
Diffstat (limited to 'commit-graph.h')
| -rw-r--r-- | commit-graph.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commit-graph.h b/commit-graph.h index 9db40b4d3a..813e7c19f1 100644 --- a/commit-graph.h +++ b/commit-graph.h @@ -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. |
