From c365a6bac14227a6e7e341ef8228365ca443d2fb Mon Sep 17 00:00:00 2001 From: axtloss Date: Thu, 7 Mar 2024 00:56:46 +0100 Subject: bugfixes --- verifysetup/core/storage.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'verifysetup') diff --git a/verifysetup/core/storage.go b/verifysetup/core/storage.go index 33efa30..c15ebfe 100644 --- a/verifysetup/core/storage.go +++ b/verifysetup/core/storage.go @@ -15,8 +15,6 @@ import ( func ReadBlock(start int, end int, device *bytes.Reader) ([]byte, error) { if end-start < 0 { return []byte{}, fmt.Errorf("tried creating byte slice with negative length. %d to %d total %d\n", start, end, end-start) - } else if end-start > 2000 { - return []byte{}, fmt.Errorf("tried creating byte slice with length over 2000. %d to %d total %d\n", start, end, end-start) } block := make([]byte, end-start) _, err := device.Seek(int64(start), 0) -- cgit v1.2.3