mirror of
https://github.com/restic/restic.git
synced 2025-03-14 23:00:51 +00:00

Bugs in the error handling while uploading a file to the backend could cause incomplete files, e.g. https://github.com/golang/go/issues/42400 which could affect the local backend. Proactively add sanity checks which will treat an upload as failed if the reported upload size does not match the actual file size.