time: handle integer overflow in Sub
If time.Sub results in a value that won't fit in a Duration (int64), return either the min or max int64 value as appropriate. Fixes #5011. R=golang-dev, bradfitz, r, rsc CC=golang-dev https://golang.org/cl/10328043
Showing
Please
register
or
sign in
to comment