]> Cypherpunks repositories - gostls13.git/commit
internal/fuzz: set timeout for each exec of fuzz target
authorKatie Hockman <katie@golang.org>
Wed, 10 Nov 2021 21:22:08 +0000 (16:22 -0500)
committerKatie Hockman <katie@golang.org>
Fri, 12 Nov 2021 18:48:59 +0000 (18:48 +0000)
commit5d24203c394e6b64c42a9f69b990d94cb6c8aad4
tree8e523bd001a7f4d20440b332cc94863b969aa373
parent8b66b3d49f931715c52b4ed71bc1dc935132c30f
internal/fuzz: set timeout for each exec of fuzz target

This change sets a timeout of 10 seconds on each
execution of the fuzz target, both during fuzzing
and during minimization. This is not currently
customizable by the user, but issue #48157 tracks
this work.

Deadlocks will be considered non-recoverable errors,
and as such, will not be minimizable.

Fixes #48591

Change-Id: Ic86e8e9e9a0255e7860f7cbf5654e832785d1cbc
Reviewed-on: https://go-review.googlesource.com/c/go/+/363134
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/testdata/script/test_fuzz_minimize.txt
src/cmd/go/testdata/script/test_fuzz_mutate_crash.txt
src/cmd/go/testdata/script/test_fuzz_mutator_repeat.txt
src/cmd/go/testdata/script/test_fuzz_non_crash_signal.txt
src/internal/fuzz/minimize_test.go
src/internal/fuzz/worker.go
src/internal/fuzz/worker_test.go