Skip to content

Commit

Permalink
Avoid reusing the buffer in reader
Browse files Browse the repository at this point in the history
  • Loading branch information
jamii committed Oct 30, 2023
1 parent cc21e25 commit 3db3db7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vng/vng_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func FuzzVngRoundtrip(f *testing.F) {
if value == nil {
break
}
// Avoid reusing the bytes buffer in `reader`.
value = zed.NewValue(value.Type, bytes.Clone(value.Bytes()))
valuesOut = append(valuesOut, *value)
}

Expand Down

0 comments on commit 3db3db7

Please sign in to comment.