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