2019-01-15 23:25:50 +01:00
|
|
|
#include "commit-graph.h"
|
2019-02-07 21:05:53 +01:00
|
|
|
#include "repository.h"
|
2019-01-15 23:25:50 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2019-02-07 21:05:53 +01:00
|
|
|
initialize_the_repository();
|
2019-01-15 23:25:50 +01:00
|
|
|
g = parse_commit_graph((void *)data, -1, size);
|
2019-02-07 21:05:53 +01:00
|
|
|
repo_clear(the_repository);
|
2019-01-15 23:25:50 +01:00
|
|
|
free(g);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|