restic/internal/checker
Michael Eischer 74d90653e0 check: use ReadFull to load pack header in checkPack
This ensures that the pack header is actually read completely.
Previously, for a truncated file it was possible to only read a part of
the header, as backend.Load(...) is not guaranteed to return as many
bytes as requested by the length parameter.
2024-05-18 21:28:54 +02:00
..
testdata Moves files 2017-07-23 14:19:13 +02:00
checker.go check: use ReadFull to load pack header in checkPack 2024-05-18 21:28:54 +02:00
checker_test.go fix compatibility with go 1.19 2024-05-18 21:28:54 +02:00
testing.go let index.Each() and pack.Size() return error on canceled context 2024-04-22 22:39:32 +02:00