Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google/gofuzz
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.0
Choose a base ref
...
head repository: google/gofuzz
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.2.0
Choose a head ref
  • 9 commits
  • 8 files changed
  • 10 contributors

Commits on Jan 23, 2020

  1. Bump Go versions. (#34)

    AlekSi authored and lavalamp committed Jan 23, 2020
    Configuration menu
    Copy the full SHA
    967ac50 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2020

  1. Implement fuzzing of complex types (#37)

    From builtin.go:
    The complex built-in function constructs a complex value from two floating-point
    values. The real and imaginary parts must be of the same size, either float32 or
    float64 (or assignable to them), and the return value will be the corresponding
    complex type (complex64 for float32, complex128 for float64).
    
    Co-authored-by: Maxime Guerreiro <mguerreiro@users.noreply.github.com>
    punkeel and mguerreiro authored Feb 3, 2020
    Configuration menu
    Copy the full SHA
    2257016 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2020

  1. Fix charRange to allow picking the last item (#36)

    * Add test proving charRange.choose excludes the last item
    
    Change charRange#choose to accept an interface, int63nPicker, exposing only
    Int63n(int64) int64. This allows the test to pass a custom RNG, returning a
    constant value (0 or the last possible int).
    
    Change charRange#choose to act on an immutable copy of charRange.
    
    * Allow charRange.choose to pick the last rune
    
    Before this change, choose would never pick the last character of the set. This
    is not the expected behavior: if the range is a-z, we expect a,b,...,y,z to be
    picked in a uniform way.
    punkeel authored Feb 10, 2020
    Configuration menu
    Copy the full SHA
    1868c06 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2020

  1. Add support to fuzz from go-fuzz input (#35)

    * Add NewFromGoFuzz
    
    Add a helper function that enables using gofuzz (this project) with
    go-fuzz (https://github.com/dvyukov/go-fuzz) for continuose
    fuzzing. Essentially, it enables translating the fuzzing bytes from
    go-fuzz to any Go object using this library.
    
    This change will enable using this project with fuzzing websites such as fuzzit.dev
    or fuzzbuzz.io.
    
    The underlying implementation was an idea of lavalamp, by which a random source
    is created that generates random numbers from the input bytes slice. In this way
    changes in the source result in logical changes in the random data, which enables
    the fuzzer to efficiently search the space of inputs.
    
    Fixes #33
    posener authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    c89cefb View commit details
    Browse the repository at this point in the history

Commits on May 4, 2020

  1. Configuration menu
    Copy the full SHA
    a994f4a View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2020

  1. Optimize randBool() and randString() (#41)

    * - Optimize the randBool() function.
    
      Previous time: 15.175 ns/op
      New time:      4.78 ns/op
    
    * - Optimize randString() by using strings.Builder.
      30% less memory used and a 5 to 7% higher throughput.
    
    * - Add benchmarks for randBool() and randString().
    
    * - Ran go fmt
    jake-ciolek authored Jun 4, 2020
    Configuration menu
    Copy the full SHA
    c04b05f View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2020

  1. Fixed a typo (#43)

    Ashikpaul authored Jul 13, 2020
    Configuration menu
    Copy the full SHA
    35f2754 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2020

  1. Add customizable string generators

    Add UnicodeRange and UnicodeRanges types, to generate strings with a more controllable set of characters. Use is optional.
    kwongtailau authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    18d1906 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2020

  1. Fix bug where NilChance(0) could still result in nil (#47)

    * Update genShouldFill to use greater-then-or-equal
    
    Because rand.Float64 can return 0 it was possible for this function to 
    return false when the nilChance is set to 0 (because 0 > 0 = false).
    
    * Add test case for NilChance(0) against "random" zero
    ericcornelissen authored Aug 4, 2020
    Configuration menu
    Copy the full SHA
    379e164 View commit details
    Browse the repository at this point in the history
Loading