git-cvsserver: protect against NULL in crypt(3)
[git.git] / fuzz-commit-graph.c
blobe7cf6d5b0facb53d3e5f35d9b54ac34814d0491a
1 #include "commit-graph.h"
2 #include "repository.h"
4 struct commit_graph *parse_commit_graph(struct repository *r,
5 void *graph_map, size_t graph_size);
7 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
9 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
11 struct commit_graph *g;
13 initialize_the_repository();
14 g = parse_commit_graph(the_repository, (void *)data, size);
15 repo_clear(the_repository);
16 free_commit_graph(g);
18 return 0;