From 813d21958075333ead2034f6023522bec685f8de Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 12 Oct 2025 13:39:37 -0400 Subject: [PATCH] tape: Fix bufferLenTag off by one error --- tape/tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tape/tag.go b/tape/tag.go index 103f01b..19683e8 100644 --- a/tape/tag.go +++ b/tape/tag.go @@ -78,6 +78,6 @@ func bufferLenTag(length int) Tag { if length < int(CNLimit) { return SBA.WithCN(length) } else { - return LBA.WithCN(IntBytes(uint64(length))) + return LBA.WithCN(IntBytes(uint64(length)) - 1) } }