Git Product home page Git Product logo

go-fuzzdump's Introduction

go-fuzzdump

godoc-badge release-badge license-badge goreport-badge

Dump a Go fuzz corpus

A simplistic utility to dump the contents of a Go generated fuzz test corpus.

I was curious whether I could use fuzzing to improve the coverage of my existing tests by discovering more "interesting" inputs. But the format of how a fuzz corpus is cached by Go (a single separate file for every unique argument set) felt a bit unwieldy to be reviewed.

I tried looking for a ready-made solution that would fit the bill for me, but couldn't find any. So I wrote this.

See the reference docs for details.

CLI

Installation

go install github.com/antichris/go-fuzzdump/cmd/fuzzdump@latest

Operation

The fuzzdump command takes a fuzzing corpus directory path as an argument and dumps the corpus entries it finds there to the standard output.

Example

$ fuzzdump ./fuzz/FuzzMyFunc
{{
	string("foo"),
	uint(8),
}, {
	string("bar"),
	uint(13),
}, {
	string("qux"),
	uint(21),
}}

Exit status

Code Description
0 Success
1 Some files were invalid, but others could be dumped
2 No valid corpus files were found
3 Another critical error occurred

License

The source code of this project is released under Mozilla Public License Version 2.0. See LICENSE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.