]> git.ipfire.org Git - thirdparty/git.git/blame - fuzz-commit-graph.c
The sixth batch
[thirdparty/git.git] / fuzz-commit-graph.c
CommitLineData
aa658574 1#include "commit-graph.h"
249dc534 2#include "repository.h"
aa658574 3
c8828530 4struct commit_graph *parse_commit_graph(void *graph_map, size_t graph_size);
aa658574
JS
5
6int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
7
8int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
9{
10 struct commit_graph *g;
11
249dc534 12 initialize_the_repository();
c8828530 13 g = parse_commit_graph((void *)data, size);
249dc534 14 repo_clear(the_repository);
104de886 15 free_commit_graph(g);
aa658574
JS
16
17 return 0;
18}