aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian C Tracy <brian.tracy33@gmail.com>2024-03-15 05:47:31 +0000
committerJunio C Hamano <gitster@pobox.com>2024-03-15 10:47:05 -0700
commitfe2033b84f5b486c6f715fa05b4c3ce08820d402 (patch)
tree34df3b0319c97ef543eac0ace2bff596e03c0f19 /Makefile
parent4f9b731bdeccffa1b13e5edf4bc0428b8d49704e (diff)
downloadgit-fe2033b84f5b486c6f715fa05b4c3ce08820d402.tar.xz
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 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4e255c81f2..af32028b18 100644
--- a/Makefile
+++ b/Makefile
@@ -757,6 +757,7 @@ ETAGS_TARGET = TAGS
# runs in the future.
FUZZ_OBJS += oss-fuzz/dummy-cmd-main.o
FUZZ_OBJS += oss-fuzz/fuzz-commit-graph.o
+FUZZ_OBJS += oss-fuzz/fuzz-config.o
FUZZ_OBJS += oss-fuzz/fuzz-date.o
FUZZ_OBJS += oss-fuzz/fuzz-pack-headers.o
FUZZ_OBJS += oss-fuzz/fuzz-pack-idx.o