]> git.ipfire.org Git - thirdparty/git.git/commitdiff
fuzz: reorganise the path for existing oss-fuzz fuzzers
authorArthur Chan <arthur.chan@adalogics.com>
Mon, 19 Sep 2022 14:36:54 +0000 (14:36 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Sep 2022 16:34:35 +0000 (09:34 -0700)
In order to provide a better organisation for oss-fuzz fuzzers and
to avoid top-level clustters in the git repository when more fuzzers
are introduced, move the existing fuzzer-related sources to their
own oss-fuzz/ hierarchy.  Grouping the fuzzers into their own
directory, separate their application on fuzz-testing from the core
functionalities of the git code, prvides better and tidier structure
the oss-fuzz fuzzing library to manage, locate, build and execute
those fuzzers for fuzz-testing purposes in future development.

Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
Makefile
oss-fuzz/.gitignore [new file with mode: 0644]
oss-fuzz/fuzz-commit-graph.c [moved from fuzz-commit-graph.c with 100% similarity]
oss-fuzz/fuzz-pack-headers.c [moved from fuzz-pack-headers.c with 100% similarity]
oss-fuzz/fuzz-pack-idx.c [moved from fuzz-pack-idx.c with 100% similarity]

index a45221576418e77de53f2776912ad62cce00c85b..73df729579508ad672d5e1f80df69a14771a79c4 100644 (file)
@@ -1,7 +1,4 @@
-/fuzz-commit-graph
 /fuzz_corpora
-/fuzz-pack-headers
-/fuzz-pack-idx
 /GIT-BUILD-OPTIONS
 /GIT-CFLAGS
 /GIT-LDFLAGS
index 17fdb16dd85afb7a5d2a69755c5cd22dc0d63276..88178c5b466e4953bfdf5bda6ca903098129aca7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -681,9 +681,9 @@ SCRIPTS = $(SCRIPT_SH_GEN) \
 
 ETAGS_TARGET = TAGS
 
-FUZZ_OBJS += fuzz-commit-graph.o
-FUZZ_OBJS += fuzz-pack-headers.o
-FUZZ_OBJS += fuzz-pack-idx.o
+FUZZ_OBJS += oss-fuzz/fuzz-commit-graph.o
+FUZZ_OBJS += oss-fuzz/fuzz-pack-headers.o
+FUZZ_OBJS += oss-fuzz/fuzz-pack-idx.o
 .PHONY: fuzz-objs
 fuzz-objs: $(FUZZ_OBJS)
 
diff --git a/oss-fuzz/.gitignore b/oss-fuzz/.gitignore
new file mode 100644 (file)
index 0000000..9acb744
--- /dev/null
@@ -0,0 +1,3 @@
+fuzz-commit-graph
+fuzz-pack-headers
+fuzz-pack-idx
similarity index 100%
rename from fuzz-pack-idx.c
rename to oss-fuzz/fuzz-pack-idx.c