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 internal/execabs: replace ioutil.WriteFile with os.WriteFile 2021-04-12 21:57:23 +00:00
fmtsort internal/fmtsort: sort the unsafe pointers in map 2020-11-19 02:17:10 +00:00
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 all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
goversion [dev.typeparams] all: merge master (fdab5be) into dev.typeparams 2021-06-14 13:24:47 -07:00
itoa all: add internal/itoa package 2021-03-14 17:56:50 +00:00
lazyregexp
lazytemplate
nettrace
obscuretestdata all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
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 all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
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 testing: print cpu type as label for benchmarks 2020-10-20 21:30:18 +00:00
testenv all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
testlog
trace runtime: move next_gc and last_next_gc into gcControllerState 2021-04-14 14:03:30 +00:00
unsafeheader
xcoff