Skip to content

Commit

Permalink
Audit unsafe call
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan committed Nov 21, 2023
1 parent 77dfa50 commit 53b2859
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/secret_unprotected.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func (lb *unlockedBuffer) Bytes() []byte {
}

func (lb *unlockedBuffer) TemporaryString() string {
//nolint:gosec // G103: Valid use of unsafe call to cast underlying bytes to string
return unsafe.String(&lb.content[0], len(lb.content))
}

Expand Down

0 comments on commit 53b2859

Please sign in to comment.