]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] internal/fuzz: don't use dirty coverage maps during minimization
authorRoland Shoemaker <roland@golang.org>
Thu, 10 Mar 2022 20:16:33 +0000 (12:16 -0800)
committerDmitri Shuralyov <dmitshur@golang.org>
Mon, 14 Mar 2022 16:29:23 +0000 (16:29 +0000)
commitc79ccd88ab65d4db6a5cf1875cf4d963b9e4fe0b
tree6e9ee6c0cddbe353ffa48c0548398e9680223a1e
parent8706c096227ce8a7f47798699232eac453a335dd
[release-branch.go1.18] internal/fuzz: don't use dirty coverage maps during minimization

When minimizing a value, if the value cannot be minimized (i.e. it is
the final value is the same value as was sent for minimization) return
the initial coverage map, rather than the coverageSnapshot, which is
actually the coverage map for the final minimization step and may not
accurately reflect whether the input actually expands the coverage set
or not.

Updates #48326

Change-Id: I01f0eebe5841e808b6799647d2e5fe3aa45cd2e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/391614
Reviewed-by: Bryan Mills <bcmills@google.com>
Trust: Roland Shoemaker <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Auto-Submit: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit bd71dee2b4c0a44f9c32e9eb23d990b54ce06bae)
Reviewed-on: https://go-review.googlesource.com/c/go/+/391797
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
src/cmd/go/testdata/script/test_fuzz_minimize_dirty_cov.txt [new file with mode: 0644]
src/internal/fuzz/worker.go