From db8d8ac07ab1f490d8fa3143a2efbbbc44d5850c Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Fri, 1 Aug 2025 13:41:38 +0800 Subject: [PATCH] fix: bug in importing f3 snapshot --- certstore/snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certstore/snapshot.go b/certstore/snapshot.go index 05127380..ceeac63e 100644 --- a/certstore/snapshot.go +++ b/certstore/snapshot.go @@ -173,7 +173,7 @@ func readSnapshotBlockBytes(reader SnapshotReader) ([]byte, error) { return nil, err } buf := make([]byte, n1) - n2, err := reader.Read(buf) + n2, err := io.ReadFull(reader, buf) if err != nil { return nil, err }