]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] internal/fuzz: send inputs to workers with shared memory
authorJay Conrod <jayconrod@google.com>
Fri, 16 Oct 2020 21:42:39 +0000 (17:42 -0400)
committerFilippo Valsorda <filippo@golang.org>
Fri, 4 Dec 2020 18:17:29 +0000 (19:17 +0100)
commita01814975c18ff1a63847eb82e0a57f7c3c746e5
treee065325eb610027042a173aa4b6be72bd39be598
parentc3a4e8dd8224d6ac46513fe4a7c909908a22395b
[dev.fuzz] internal/fuzz: send inputs to workers with shared memory

The coordinator process creates a temporary file for each worker. Both
coordinator and worker map the file into memory and use it for input
values. Access is synchronized with RPC over pipes.

Change-Id: I43c10d7291a8760a616b472d11c017a3a7bb19cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/263153
Reviewed-by: Katie Hockman <katie@golang.org>
Trust: Jay Conrod <jayconrod@google.com>
src/cmd/go/testdata/script/test_fuzz_mutate.txt [new file with mode: 0644]
src/internal/fuzz/fuzz.go
src/internal/fuzz/mem.go [new file with mode: 0644]
src/internal/fuzz/sys_posix.go
src/internal/fuzz/sys_unimplemented.go [new file with mode: 0644]
src/internal/fuzz/sys_windows.go
src/internal/fuzz/worker.go
src/testing/fuzz.go