]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] internal/fuzz: fix panic when marshaling data
authorKatie Hockman <katie@golang.org>
Wed, 8 Sep 2021 18:06:52 +0000 (14:06 -0400)
committerKatie Hockman <katie@golang.org>
Wed, 8 Sep 2021 19:16:20 +0000 (19:16 +0000)
commite9674e553ce941c1c0558892852d299a35fa2178
treed7abdef3798d12a85f190ef5503a1707b990ab69
parent9c56a64673d2f458e28c603f95b4efb5d39beef2
[dev.fuzz] internal/fuzz: fix panic when marshaling data

The coordinator needs to marshal data that was provided
via f.Add. However, it was also attempting to marshal data
that was in testdata, which was not needed,
and was causing a panic. This change fixes this.

Fixes golang/go#48228

Change-Id: I1256c5a287b5a09d2f8cca59beb0f0fc06cc3554
Reviewed-on: https://go-review.googlesource.com/c/go/+/348381
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/testdata/script/test_fuzz.txt
src/internal/fuzz/fuzz.go