data: return an error for too large numbers in ParseDuration (#22163)

This commit is contained in:
Wei-Lun Li authored and GitHub committed 2026-11-05 19:36:49 +00:00
1 parent b5d0152014
commit 9a0b9e0eb5
3 files changed
+13 -1

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
Bugfix: Report an error for too large numbers in `--keep-within*` durations
Restic crashed with a stack trace when a number in a duration such as the one
passed to `restic forget --keep-within` did not fit into an integer. It now
reports an invalid argument instead.
https://github.com/restic/restic/pull/22163