mirror of
https://github.com/restic/restic.git
synced 2026-11-14 10:02:46 +00:00
mem: stricter handling of out of bounds requests
This commit is contained in:
1 parent
d40f23e716
commit
cfc420664a
2 files changed
+9
-4
No files matched your search
@@ -96,7 +96,7 @@ func TestDry(t *testing.T) {
|
||||
}
|
||||
case "load":
|
||||
data := ""
|
||||
err = step.be.Load(ctx, handle, 100, 0, func(rd io.Reader) error {
|
||||
err = step.be.Load(ctx, handle, 0, 0, func(rd io.Reader) error {
|
||||
buf, err := io.ReadAll(rd)
|
||||
data = string(buf)
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user