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

+1 -1
View File
@@ -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 {