2019-01-16 01:25:50 +03:00
|
|
|
#include "commit-graph.h"
|
2019-02-07 23:05:53 +03:00
|
|
|
#include "repository.h"
|
2019-01-16 01:25:50 +03:00
|
|
|
|
2020-09-09 18:22:56 +03:00
|
|
|
struct commit_graph *parse_commit_graph(struct repository *r,
|
|
|
|
void *graph_map, size_t graph_size);
|
2019-01-16 01:25:50 +03:00
|
|
|
|
|
|
|
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 23:05:53 +03:00
|
|
|
initialize_the_repository();
|
2020-09-09 18:22:56 +03:00
|
|
|
g = parse_commit_graph(the_repository, (void *)data, size);
|
2019-02-07 23:05:53 +03:00
|
|
|
repo_clear(the_repository);
|
2020-06-06 01:55:14 +03:00
|
|
|
free_commit_graph(g);
|
2019-01-16 01:25:50 +03:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|