File: README.md

package info (click to toggle)
golang-github-sigstore-sigstore 1.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,052 kB
  • sloc: makefile: 87; sh: 45
file content (20 lines) | stat: -rw-r--r-- 941 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
### Fuzzing 

The fuzzing of sigstore uses [go-fuzz](https://github.com/dvyukov/go-fuzz) for fuzzing. 
It is integrated into oss-fuzz https://github.com/google/oss-fuzz/pull/6890 for fuzzing continuously. 

#### Why not use go 1.18 fuzzing?
The go-fuzz can be compatible with `libfuzzer`, which is supported by `oss-fuzz`. 
The go 1.18 doesn't have support for external fuzzer formats yet.

#### What is corpus?
>A set of inputs for a fuzz target. In most contexts, it refers to a set of minimal test inputs that generate maximal code coverage.
https://google.github.io/clusterfuzz/reference/glossary/#corpus

#### How do I run the fuzzer?
1. `make fuzz`
2. `go-fuzz -bin=signature-fuzz.zip -func FuzzED25529SignerVerfier`
3.  An example to use the `libfuzzer` `go-fuzz-build --libfuzzer -func FuzzRSASignerVerfier ./signature/...` 
and `clang -fsanitize=fuzzer reflect-fuzz.a -o fmt.libfuzzer`
4.  The `libfuzzer` option requires `linux`.