mirror of
https://github.com/restic/restic.git
synced 2026-03-16 19:15:56 +00:00
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.