mirror of
https://github.com/restic/restic.git
synced 2026-11-23 13:52:39 +00:00
--------- Co-authored-by: Leo R. Lundgren <leo@finalresort.org>
11 lines
483 B
Plaintext
11 lines
483 B
Plaintext
Bugfix: Don't crash on truncated key or config file
|
|
|
|
Restic previously crashed with a slice bounds panic when the repository
|
|
contained a key or config file that was shorter than the encryption overhead,
|
|
for example after an upload was interrupted. Since every command has to read
|
|
a key file, the whole repository became unusable until the file was removed.
|
|
|
|
This has now been fixed, and restic instead reports that the file is too short.
|
|
|
|
https://github.com/restic/restic/pull/21977
|