Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 773 Bytes

FUZZ.md

File metadata and controls

25 lines (17 loc) · 773 Bytes

Fuzzing InfluxDB

Continuous fuzzing

The InfluxDB repository contains testing targets for InfluxDB's integration with OSS-Fuzz.

The build scripts for this integration are maintained in the OSS-Fuzz repo.

Local fuzzing

For local fuzzing, install go-fuzz:

$ go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build

Below is an example of building and running a fuzz test. In this case, the test is located at ./jsonweb/fuzz.go.

$ cd go/src/github.com/influxdata/influxdb/jsonweb
$ go-fuzz-build github.com/influxdata/influxdb/v2/jsonweb
$ go-fuzz -bin jsonweb-fuzz.zip