]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] internal/fuzz: only reconstruct inputs when needed on RPC return
authorJay Conrod <jayconrod@google.com>
Thu, 2 Sep 2021 21:57:43 +0000 (14:57 -0700)
committerJay Conrod <jayconrod@google.com>
Wed, 8 Sep 2021 19:40:25 +0000 (19:40 +0000)
commitf4f137a1434725f652f924a57a5ae51c9a477d03
treea58f0bed7ff622f19f7ef3be79bcff2879c88dd3
parente9674e553ce941c1c0558892852d299a35fa2178
[dev.fuzz] internal/fuzz: only reconstruct inputs when needed on RPC return

If the fuzz RPC finds no error and no new coverage, there's no point
in reconstructing the last value.

If the minimize RPC does not succeed in minimizing, either because the
error can't be reproduced, or new coverage can't be reproduced, or a
new error is found with the input, don't marshal or unmarshal the
input. Just use the original.

Change-Id: I3b0f89b8656a2b36066d82efefac0fff4a61fbee
Reviewed-on: https://go-review.googlesource.com/c/go/+/347233
Trust: Jay Conrod <jayconrod@google.com>
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/internal/fuzz/worker.go