mirror of
https://github.com/restic/restic.git
synced 2026-09-23 04:20:30 +00:00
repository: reject key and config files that are too short (#21977)
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
Bugfix: Report an error instead of crashing on a truncated key or config file
|
||||
|
||||
Restic crashed with a slice bounds panic when a repository contained a key
|
||||
file or a 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.
|
||||
Restic now reports that the file is too short instead.
|
||||
|
||||
https://github.com/restic/restic/pull/21977
|
||||
Reference in New Issue
Block a user