diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-07-02 10:57:48 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-07-02 14:49:44 +0200 |
| commit | 55565fa0377f97cf09bfab365707e08b0156c11b (patch) | |
| tree | 403e5fe02ad0c3d38e1bf9ab10c6ad9168bf1575 /prog/export_test.go | |
| parent | 5f175e9c09c764e204a3935dde230dd929f4e9fc (diff) | |
prog: fix minimization bugs
Fix several nasty bugs in minimization that could lead
to almost arbitrary results. These bugs affected both
crash minimization and corpus population.
Extend the randomized test to catch these bugs.
Add additional asserts to code to catch similar bugs in future.
Reported-by @xairy
Diffstat (limited to 'prog/export_test.go')
| -rw-r--r-- | prog/export_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/export_test.go b/prog/export_test.go index d5c67ac70..1aaea30dc 100644 --- a/prog/export_test.go +++ b/prog/export_test.go @@ -41,9 +41,9 @@ func randSource(t *testing.T) rand.Source { } func iterCount() int { - iters := 10000 + iters := 1000 if testing.Short() { - iters = 100 + iters /= 10 } if raceEnabled { iters /= 10 |
