]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
fuzz: add fuzzer for config parsing
authorBrian C Tracy <brian.tracy33@gmail.com>
Fri, 15 Mar 2024 05:47:31 +0000 (05:47 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Mar 2024 17:47:05 +0000 (10:47 -0700)
commitfe2033b84f5b486c6f715fa05b4c3ce08820d402
tree34df3b0319c97ef543eac0ace2bff596e03c0f19
parent4f9b731bdeccffa1b13e5edf4bc0428b8d49704e
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>
Makefile
ci/run-build-and-minimal-fuzzers.sh
oss-fuzz/.gitignore
oss-fuzz/fuzz-config.c [new file with mode: 0644]