# simdjson-fuzz **Repository Path**: mirrors_minio/simdjson-fuzz ## Basic Information - **Project Name**: simdjson-fuzz - **Description**: Fuzzers and corpus for https://github.com/minio/simdjson-go - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-10-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # simdjson-fuzz Fuzzers and corpus for [github.com/minio/simdjson-go](https://github.com/minio/simdjson-go) # Running ``` go get -u github.com/minio/simdjson-fuzz go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build ``` Go to `$GOPATH$/src/github.com/minio/simdjson-fuzz` Crash testing, execute: ``` go-fuzz-build -o=fuzz-build.zip -func=Fuzz . go-fuzz -bin=fuzz-build.zip -workdir=corpus ``` Correctness testing, execute: ``` go-fuzz-build -o=fuzz-build.zip -func=FuzzCorrect . go-fuzz -bin=fuzz-build.zip -workdir=corpus ``` This package does on purpose not use modules. Feel free to submit additional corpus as Pull Requests. # Timeouts Due to problems with the current Go fuzzer better results can often be obtained by running the fuzzer for a shorter time period and restarting it. A Go program is supplied to do that will run the supplied command for a specific duration. A continuously looping script can be created in bash for instance: ``` go-fuzz-build -o=fuzz-build.zip -func=FuzzCorrect . while true; do go run timeout.go -duration=10m go-fuzz -bin=fuzz-build.zip -workdir=corpus done ``` In the example the fuzzer runs for 10 minutes before exiting.