Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Okstad <pokstad@gitlab.com>2020-09-15 22:00:11 +0300
committerPaul Okstad <pokstad@gitlab.com>2020-09-15 22:00:11 +0300
commit838d4b88d3fa78345cdc1c2a34244de6e1d38f37 (patch)
treefad6a16553b172fc2d8d37196142a05626f8bd43 /.gitlab-ci.yml
parent0cc72a02229617905e560886227b3743527cd197 (diff)
parentfc3c93bbdae1be7572077a58e56ec86694ae91bc (diff)
Merge branch 'add_fuzz_testing' into 'master'
Add fuzz testing to objectinfo parser See merge request gitlab-org/gitaly!2481
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ac7c6d6dd..03f3c16f6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -222,6 +222,7 @@ include:
- template: Security/License-Scanning.gitlab-ci.yml
- template: Security/SAST.gitlab-ci.yml
- template: Security/Dependency-Scanning.gitlab-ci.yml
+ - template: Security/Coverage-Fuzzing.gitlab-ci.yml
gosec-sast:
before_script:
@@ -265,6 +266,17 @@ lint:
- go version
- make lint
+objectinfo_fuzz_test:
+ image: registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6-golang-1.13-git-2.26
+ extends: .fuzz_base
+ stage: test
+ script:
+ - apt update && apt install -y clang-7
+ - go get github.com/dvyukov/go-fuzz/go-fuzz && go get github.com/dvyukov/go-fuzz/go-fuzz-build
+ - /root/go/bin/go-fuzz-build -libfuzzer -o objectinfo_fuzzer.a ./internal/git/catfile
+ - clang-7 -fsanitize=fuzzer objectinfo_fuzzer.a -o objectinfo_fuzzer
+ - ./gitlab-cov-fuzz run -- ./objectinfo_fuzzer -max_total_time=300
+
code_navigation:
allow_failure: true
script: