Skip to content

Commit f5c6b15

Browse files
Suppress false positive slice index out of range error gosec (#1473)
Co-authored-by: libotony <tony.li@vechain.org>
1 parent d2dc2f0 commit f5c6b15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎vm/contracts.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ var (
559559
errBlake2FInvalidFinalFlag = errors.New("invalid final flag")
560560
)
561561

562+
// #nosec G602
563+
// false alert from gosec as input length is checked in L565
562564
func (c *blake2F) Run(input []byte) ([]byte, error) {
563565
// Make sure the input is valid (correct length and final flag)
564566
if len(input) != blake2FInputLength {

0 commit comments

Comments
 (0)