]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] internal/fuzz: don't use temporary buffers
authorRoland Shoemaker <roland@golang.org>
Tue, 27 Apr 2021 19:16:03 +0000 (12:16 -0700)
committerRoland Shoemaker <roland@golang.org>
Fri, 4 Jun 2021 03:07:33 +0000 (03:07 +0000)
commit5542c10fbf19cb199d1659c18963f9ed83570746
tree1805af22f044d8f63233ce06229324efe0d55327
parent106851ad7330015dbe3c0beb2233821b838fcb89
[dev.fuzz] internal/fuzz: don't use temporary buffers

We're already allocating a huge amount of space at the end of each byte
slice, so just use that for scratch space instead of allocating a new
temporary buffer.

Change-Id: Ie075a199d4ac5dd5789949af2a19815c3025b809
Reviewed-on: https://go-review.googlesource.com/c/go/+/314272
Trust: Roland Shoemaker <roland@golang.org>
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/internal/fuzz/mutator.go