summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Josh Steadmon <steadmon@google.com>2018-10-12 17:58:41 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-15 14:29:03 +0900
commit1127a98ccea2a911d2043dcc9ce301e080a3cc39 (patch)
treee22ba4d30cc39102180641508bdff90b9fef76dd /Makefile
parentfuzz: add basic fuzz testing target. (diff)
downloadtgif-1127a98ccea2a911d2043dcc9ce301e080a3cc39.tar.xz
fuzz: add fuzz testing for packfile indices.
Breaks the majority of check_packed_git_idx() into a separate function, load_idx(). The latter function operates on arbitrary buffers, which makes it suitable as a fuzzing test target. Signed-off-by: Josh Steadmon <steadmon@google.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 7f5a19b8ab..1b3d893090 100644
--- a/Makefile
+++ b/Makefile
@@ -685,6 +685,7 @@ SCRIPTS = $(SCRIPT_SH_INS) \
ETAGS_TARGET = TAGS
FUZZ_OBJS += fuzz-pack-headers.o
+FUZZ_OBJS += fuzz-pack-idx.o
# Always build fuzz objects even if not testing, to prevent bit-rot.
all:: $(FUZZ_OBJS)