Skip to content

Commit

Permalink
WIP: improve ClusterFuzzLite support
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Aug 22, 2023
1 parent e687573 commit eda56c9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .clusterfuzzlite/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM gcr.io/oss-fuzz-base/base-builder-go
RUN git clone --depth 1 https://github.com/pandatix/go-cvss.git
RUN go install github.com/AdamKorcz/go-118-fuzz-build@latest
COPY .clusterfuzzlite/build.sh $SRC/
WORKDIR $SRC/go-cvss
7 changes: 7 additions & 0 deletions .clusterfuzzlite/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

go get github.com/AdamKorcz/go-118-fuzz-build/testing

compile_native_go_fuzzer github.com/pandatix/go-cvss/20 FuzzParseVector fuzz_parse_vector_20
compile_native_go_fuzzer github.com/pandatix/go-cvss/30 FuzzParseVector fuzz_parse_vector_30
compile_native_go_fuzzer github.com/pandatix/go-cvss/31 FuzzParseVector fuzz_parse_vector_31
8 changes: 8 additions & 0 deletions .clusterfuzzlite/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
homepage: "https://github.com/pandatix/go-cvss"
language: go
primary_contact: "[email protected]"
fuzzing_engines:
- libfuzzer
sanitizers:
- address
main_repo: "https://github.com/pandatix/go-cvss"
4 changes: 3 additions & 1 deletion .github/workflows/cflite_batch.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: ClusterFuzzLite batch fuzzing
on:
schedule:
- cron: '0 4 * * *'
- cron: '0/5 * * * *'
push:
branches: [ "main" ]
permissions: read-all
jobs:
BatchFuzzing:
Expand Down

0 comments on commit eda56c9

Please sign in to comment.