We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We've got reports for hashing algorithms not handling errors for example
[/Users/emmanuelodeke/go/src/github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1/secp256k1.go:160] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) 159: hasherRIPEMD160 := ripemd160.New() > 160: hasherRIPEMD160.Write(sha[:]) // does not error 161: return crypto.Address(hasherRIPEMD160.Sum(nil))
but the Go contracts for hash.Hash.Write say that it WILL NEVER return an error per https://pkg.go.dev/hash#Hash
The text was updated successfully, but these errors were encountered:
8d0d8e0
odeke-em
Successfully merging a pull request may close this issue.
Summary
We've got reports for hashing algorithms not handling errors for example
but the Go contracts for hash.Hash.Write say that it WILL NEVER return an error per https://pkg.go.dev/hash#Hash
![Screen Shot 2022-09-23 at 6 48 28 PM](https://user-images.githubusercontent.com/4898263/192074977-e5a7dd37-f835-43b4-92ee-277b2103b27b.png)
The text was updated successfully, but these errors were encountered: