From 3db3db72888cf9f35997525adb2a4a360a20ca21 Mon Sep 17 00:00:00 2001 From: Jamie Brandon Date: Sun, 29 Oct 2023 17:50:42 -0700 Subject: [PATCH] Avoid reusing the buffer in reader --- vng/vng_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vng/vng_test.go b/vng/vng_test.go index 84cb6275c5..d24ccfd068 100644 --- a/vng/vng_test.go +++ b/vng/vng_test.go @@ -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) }