aboutsummaryrefslogtreecommitdiff
path: root/verify/core/storage.go
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-03-07 00:56:46 +0100
committeraxtloss <axtlos@getcryst.al>2024-03-07 00:56:46 +0100
commitc365a6bac14227a6e7e341ef8228365ca443d2fb (patch)
tree6c0fed4e74fb3198a3afb79fd7bebfa477c46a47 /verify/core/storage.go
parent0f5bd8e774b4746c27d9a573057d57770e1cf0de (diff)
downloadfsverify-main.tar.gz
fsverify-main.tar.bz2
bugfixesHEADmain
Diffstat (limited to 'verify/core/storage.go')
-rw-r--r--verify/core/storage.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/verify/core/storage.go b/verify/core/storage.go
index 182e1ec..f1f9436 100644
--- a/verify/core/storage.go
+++ b/verify/core/storage.go
@@ -232,9 +232,7 @@ func GetNode(checksum string, db *bolt.DB) (Node, error) {
func CopyByteArea(start int, end int, reader *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)
- }
+ }
bytes := make([]byte, end-start)
n, err := reader.ReadAt(bytes, int64(start))
if err != nil {