]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] internal/fuzz: add sharedMem.setValueLen
authorJay Conrod <jayconrod@google.com>
Thu, 14 Jan 2021 23:22:41 +0000 (18:22 -0500)
committerJay Conrod <jayconrod@google.com>
Fri, 15 Jan 2021 14:30:24 +0000 (14:30 +0000)
commitcc7f8c305501399c78d894b7ba7bd3ea428b250e
tree2f20cb4798a7ac7e630f2125044c3ba13208b25d
parent06074108fab489d6bd7358e736bcd0cb38830c7c
[dev.fuzz] internal/fuzz: add sharedMem.setValueLen

This method sets the len of the slice returned by valueRef. The worker
now uses this instead of setting the length in the header directly.

Unfortunately, we can't store the whole slice header in the shared
memory header because the pointer won't be valid across processes.

Change-Id: Icef24acfcd85e098cd8c23810568f04b13649a19
Reviewed-on: https://go-review.googlesource.com/c/go/+/284012
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/internal/fuzz/mem.go
src/internal/fuzz/worker.go