mem: stricter handling of out of bounds requests

This commit is contained in:
Michael Eischer 2024-05-11 00:12:13 +02:00
parent d40f23e716
commit cfc420664a
2 changed files with 9 additions and 4 deletions

View file

@ -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