- 필수 기능
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- 디지털 경험
- 소프트웨어 제공
- 보안
- 로그 관리
- 관리
- 인프라스트럭처
- ci
- containers
- csm
- ndm
- otel_guides
- overview
- slos
- synthetics
- tests
- 워크플로
ID: go-security/hashsum
Language: Go
Severity: Error
Category: Error Prone
No description found
import "crypto/sha256"
func main() {
out := make([]byte, 64)
h := sha256.New()
hashed := h.Sum(out)
hashed := sha256.New().Sum(out)
}
import "crypto/sha256"
func main() {
arr := []int{1, 2, 3}
out := make([]byte, 64)
h := sha256.New()
h.Write(arr)
hashed := h.Sum(out)
h2 := sha256.New()
hashArr(h2, arr)
hashed2 := h2.Sum(out)
}
func hashArr(h hash.Hash, b []byte) {
h.Write(b)
}
|
|
For more information, please read the Code Analysis documentation
Identify code vulnerabilities directly in yourVS Code editor
Identify code vulnerabilities directly inJetBrains products