diff options
author | Josh Steadmon <steadmon@google.com> | 2019-01-15 14:25:50 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-15 20:31:49 -0800 |
commit | aa658574bfcbe03f5703458ac10be1ef3f5f5472 (patch) | |
tree | b8841623f51f1013b9207a53b199f3f0b557b56b /builtin/fetch.c | |
parent | Second batch after 2.20 (diff) | |
download | tgif-aa658574bfcbe03f5703458ac10be1ef3f5f5472.tar.xz |
commit-graph, fuzz: add fuzzer for commit-graph
Break load_commit_graph_one() into a new function, parse_commit_graph().
The latter function operates on arbitrary buffers, which makes it
suitable as a fuzzing target. Since parse_commit_graph() is only called
by load_commit_graph_one() (and the fuzzer described below), we omit
error messages that would be duplicated by the caller.
Adds fuzz-commit-graph.c, which provides a fuzzing entry point
compatible with libFuzzer (and possibly other fuzzing engines).
Signed-off-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
0 files changed, 0 insertions, 0 deletions