Josh Steadmon | aa65857 | 2019-01-15 14:25:50 -0800 | [diff] [blame] | 1 | #include "commit-graph.h" |
Josh Steadmon | 249dc53 | 2019-02-07 12:05:53 -0800 | [diff] [blame] | 2 | #include "repository.h" |
Josh Steadmon | aa65857 | 2019-01-15 14:25:50 -0800 | [diff] [blame] | 3 | |
Taylor Blau | ab14d06 | 2020-09-09 11:22:56 -0400 | [diff] [blame] | 4 | struct commit_graph *parse_commit_graph(struct repository *r, |
| 5 | void *graph_map, size_t graph_size); |
Josh Steadmon | aa65857 | 2019-01-15 14:25:50 -0800 | [diff] [blame] | 6 | |
| 7 | int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size); |
| 8 | |
| 9 | int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) |
| 10 | { |
| 11 | struct commit_graph *g; |
| 12 | |
Josh Steadmon | 249dc53 | 2019-02-07 12:05:53 -0800 | [diff] [blame] | 13 | initialize_the_repository(); |
Taylor Blau | ab14d06 | 2020-09-09 11:22:56 -0400 | [diff] [blame] | 14 | g = parse_commit_graph(the_repository, (void *)data, size); |
Josh Steadmon | 249dc53 | 2019-02-07 12:05:53 -0800 | [diff] [blame] | 15 | repo_clear(the_repository); |
Josh Steadmon | 104de88 | 2020-06-05 15:55:14 -0700 | [diff] [blame] | 16 | free_commit_graph(g); |
Josh Steadmon | aa65857 | 2019-01-15 14:25:50 -0800 | [diff] [blame] | 17 | |
| 18 | return 0; |
| 19 | } |