From: Bryan C. Mills Date: Tue, 30 Jul 2019 18:51:26 +0000 (-0400) Subject: cmd/go/internal/cache: verify that timestamp is positive X-Git-Tag: go1.13rc1~59 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5f8d8161e66bda5fa9559648f7793e96885c89e3;p=gostls13.git cmd/go/internal/cache: verify that timestamp is positive An apparent typo caused us to re-check size instead. Updates #29667 Change-Id: Icc1fb9cef1ba77b8490c8fbe6c343be06ff48d8d Reviewed-on: https://go-review.googlesource.com/c/go/+/188020 Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot Reviewed-by: Jay Conrod --- diff --git a/src/cmd/go/internal/cache/cache.go b/src/cmd/go/internal/cache/cache.go index 168ad32b0e..a05a08f75f 100644 --- a/src/cmd/go/internal/cache/cache.go +++ b/src/cmd/go/internal/cache/cache.go @@ -173,7 +173,7 @@ func (c *Cache) get(id ActionID) (Entry, error) { i++ } tm, err := strconv.ParseInt(string(etime[i:]), 10, 64) - if err != nil || size < 0 { + if err != nil || tm < 0 { return missing() }