go/src/internal
Katie Hockman cfe6763783 internal/fuzz: fix bugs with minimization
This pulls in some code and tests from CL 353355.

This change makes some refactors for when we read
to and write from memory during minimization.
That fixes a bug when minimizing interesting inputs.
Now, if an error occurs while minimizing an interesting
input, that value will continue to be minimized as a
crash, and returned to the user.

This change also allows minimization of a crash that
occurred during the warmup phase. We don't want to
minimize failures in the seed corpus, but if an entry
in the cache causes a new failure, then there's no
compelling reason why we shouldn't try to minimize it.

Fixes #48731

Change-Id: I7262cecd8ea7ae6fdf932f3a36db55fb062a1f2a
Reviewed-on: https://go-review.googlesource.com/c/go/+/355691
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
2021-10-15 19:03:33 +00:00
..
abi internal/abi: define PPC64 register ABI constants 2021-09-21 12:51:45 +00:00
buildcfg internal/buildcfg: enable register ABI for PPC64 2021-10-05 19:15:03 +00:00
bytealg internal/bytealg: port bytealg functions to reg ABI on ppc64x 2021-09-28 20:54:26 +00:00
cfg cmd/go: add GOAMD64 environment variable 2021-09-16 17:44:44 +00:00
cpu internal/cpu: remove option to mark cpu features required 2021-10-06 18:44:56 +00:00
execabs
fmtsort
fuzz internal/fuzz: fix bugs with minimization 2021-10-15 19:03:33 +00:00
goarch go/build, internal/goarch: sort goarchList alphabetically 2021-10-08 19:30:58 +00:00
goexperiment [dev.typeparams] internal/goexperiment: update comment for RegabiArgs requirements 2021-08-10 16:07:59 +00:00
goos [dev.typeparams] internal/goarch,internal/goos: rename Goos and Goarch constants 2021-06-17 21:28:55 +00:00
goroot
goversion [dev.typeparams] all: merge master (fdab5be) into dev.typeparams 2021-06-14 13:24:47 -07:00
itoa
lazyregexp
lazytemplate
nettrace
obscuretestdata
oserror
poll internal/poll,net: support poll.Sendfile for darwin 2021-10-13 16:41:20 +00:00
profile all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
race
reflectlite refect: rename Ptr Kind to Pointer (but keep Ptr) 2021-09-03 04:24:17 +00:00
singleflight
syscall crypto/rand, internal/syscall/unix: don't use getentropy on iOS 2021-08-20 16:44:10 +00:00
sysinfo
testenv
testlog
trace
unsafeheader
xcoff