mirror of
https://github.com/restic/restic.git
synced 2026-11-06 07:19:21 +00:00
data: return an error for too large numbers in ParseDuration (#22163)
This commit is contained in:
1 parent
b5d0152014
commit
9a0b9e0eb5
3 files changed
+13
-1
No files matched your search
@@ -65,7 +65,7 @@ func nextNumber(input string) (num int, rest string, err error) {
|
||||
|
||||
num, err = strconv.Atoi(n)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return 0, input, err
|
||||
}
|
||||
|
||||
if negative {
|
||||
|
||||
Reference in new issue
Block a user