From 55565fa0377f97cf09bfab365707e08b0156c11b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 2 Jul 2019 10:57:48 +0200 Subject: 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 --- prog/export_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prog/export_test.go') 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 -- cgit mrf-deployment