diff options
author | axtloss <axtlos@getcryst.al> | 2024-03-07 00:56:46 +0100 |
---|---|---|
committer | axtloss <axtlos@getcryst.al> | 2024-03-07 00:56:46 +0100 |
commit | c365a6bac14227a6e7e341ef8228365ca443d2fb (patch) | |
tree | 6c0fed4e74fb3198a3afb79fd7bebfa477c46a47 /verify/core/storage.go | |
parent | 0f5bd8e774b4746c27d9a573057d57770e1cf0de (diff) | |
download | fsverify-c365a6bac14227a6e7e341ef8228365ca443d2fb.tar.gz fsverify-c365a6bac14227a6e7e341ef8228365ca443d2fb.tar.bz2 |
Diffstat (limited to 'verify/core/storage.go')
-rw-r--r-- | verify/core/storage.go | 4 |
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 { |