summaryrefslogtreecommitdiff
path: root/fuzz-commit-graph.c
blob: cf790c9d04ca4d3941ed94316b537b5739eba5ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "commit-graph.h"

struct commit_graph *parse_commit_graph(void *graph_map, int fd,
					size_t graph_size);

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
	struct commit_graph *g;

	g = parse_commit_graph((void *)data, -1, size);
	free(g);

	return 0;
}