golang/go

cmd/link: suspicious use of (*cmd/internal/bio/buf.Reader).Seek

Open

#28,556 建立於 2018年11月2日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Go (19,008 fork)batch import
NeedsInvestigationcompiler/runtimehelp wanted

倉庫指標

Star
 (133,883 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

While a running a recent test of vet, it flagged the (*buf.Reader).Seek method as not having a proper return type (int64, error). Instead it handles errors by calling log.Fatal, yet most callers of this function seem to assume it returns a negative number to indicate failure.

Someone who knows this code should probably audit it.

貢獻者指南