summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorBrian C Tracy <brian.tracy33@gmail.com>2024-03-15 06:47:31 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-15 18:47:05 +0100
commitfe2033b84f5b486c6f715fa05b4c3ce08820d402 (patch)
tree34df3b0319c97ef543eac0ace2bff596e03c0f19 /ci
parentThe seventh batch (diff)
downloadgit-fe2033b84f5b486c6f715fa05b4c3ce08820d402.tar.xz
git-fe2033b84f5b486c6f715fa05b4c3ce08820d402.zip
fuzz: add fuzzer for config parsing
Add a new fuzz target that exercises the parsing of git configs. The existing git_config_from_mem function is a perfect entry point for fuzzing as it exercises the same code paths as the rest of the config parsing functions and offers an easily fuzzable interface. Config parsing is a useful thing to fuzz because it operates on user controlled data and is a central component of many git operations. Signed-off-by: Brian C Tracy <brian.tracy33@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/run-build-and-minimal-fuzzers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/run-build-and-minimal-fuzzers.sh b/ci/run-build-and-minimal-fuzzers.sh
index 8ba486f659..a51076d18d 100755
--- a/ci/run-build-and-minimal-fuzzers.sh
+++ b/ci/run-build-and-minimal-fuzzers.sh
@@ -12,7 +12,7 @@ group "Build fuzzers" make \
LIB_FUZZING_ENGINE="-fsanitize=fuzzer,address" \
fuzz-all
-for fuzzer in commit-graph date pack-headers pack-idx ; do
+for fuzzer in commit-graph config date pack-headers pack-idx ; do
begin_group "fuzz-$fuzzer"
./oss-fuzz/fuzz-$fuzzer -verbosity=0 -runs=1 || exit 1
end_group "fuzz-$fuzzer"