]> Cypherpunks repositories - gostls13.git/commit
internal/fuzz: centralize corpus entry addition
authorRoland Shoemaker <roland@golang.org>
Mon, 1 Nov 2021 17:03:36 +0000 (10:03 -0700)
committerRoland Shoemaker <roland@golang.org>
Thu, 27 Jan 2022 16:07:55 +0000 (16:07 +0000)
commitb2dc66c64db933120c34d2223e670e8594543bd9
treee7db8fd85eec9a074819b381f9db8c0549891b6b
parenta991d9dc27bda23018e23488806c8f8d027e4f7b
internal/fuzz: centralize corpus entry addition

Adds an addCorpusEntry method to coordinator which manages checking for
duplicate entries, writing entries to the cache directory, and adding
entries to the corpus. Also moves readCache to be a method on the
coordinator.

Fixes #50606

Change-Id: Id6721384a2ad1cfb4c5471cf0cd0a7510d250a6c
Reviewed-on: https://go-review.googlesource.com/c/go/+/360394
Trust: Katie Hockman <katie@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
Trust: Roland Shoemaker <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/internal/fuzz/fuzz.go