aboutsummaryrefslogtreecommitdiff
path: root/internal/format
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-11 08:17:16 +0000
committerGravatar Runxi Yu2026-06-11 08:17:16 +0000
commit63cc77a922a382dd06cef14756a357b45df24d23 (patch)
treea1c592c4202a0a3d7c334e69d6e9a191d3fad3e2 /internal/format
parentinternal/format/packfile: Fix exhaustiveness in entry_type (diff)
internal/format/packfile: Fix 9 continuation bytes is needed for the overflow test
Diffstat (limited to 'internal/format')
-rw-r--r--internal/format/packfile/entry_header_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/format/packfile/entry_header_test.go b/internal/format/packfile/entry_header_test.go
index cf59155c..807c544e 100644
--- a/internal/format/packfile/entry_header_test.go
+++ b/internal/format/packfile/entry_header_test.go
@@ -102,7 +102,7 @@ func TestParseEntryHeaderMalformed(t *testing.T) {
{name: "truncated type/size", data: []byte{0x95}},
{
name: "size overflow",
- data: append([]byte{0x9f}, bytes.Repeat([]byte{0xff}, 8)...),
+ data: append([]byte{0x9f}, bytes.Repeat([]byte{0xff}, 9)...),
},
{
name: "overlong type/size",