Finality forks fix#2013
Conversation
| if endorseErr := a.Endorse(block.Parent, height, pk, sk); endorseErr != nil { | ||
| return a.Errorf(errors.Wrapf(err, "failed to endorse parent block")) | ||
| } |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: semgrep.rules.if-incorrect-nil-err-return Warning
| if endorseErr := a.Endorse(block.Parent, height, pk, sk); endorseErr != nil { | ||
| return a.Errorf(errors.Wrapf(err, "failed to endorse parent block")) | ||
| } |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: semgrep.rules.if-inplace-func-incorrect-nil-err-return Warning
| "encoding/base64" | ||
| stderrs "errors" | ||
| "fmt" | ||
| "math/rand/v2" |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: go.lang.security.audit.crypto.math_random.math-random-used Warning test
| @@ -1318,8 +1346,8 @@ | |||
| // See `balances.generateLeaseBalanceSnapshotsForLeaseOverflows` for details | |||
| newLeaseBalance := proto.LeaseBalanceSnapshot{ | |||
| Address: wavesAddress, | |||
| LeaseIn: uint64(fullBalance.leaseIn + diffAmount.leaseIn.Value()), | |||
| LeaseOut: uint64(fullBalance.leaseOut + diffAmount.leaseOut.Value()), | |||
| LeaseIn: uint64(fullBalance.LeaseIn + diffAmount.leaseIn.Value()), //nolint:gosec // As described above. | |||
Check failure
Code scanning / gosec
integer overflow conversion uint64 -> uint32 Error
| LeaseIn: uint64(fullBalance.leaseIn + diffAmount.leaseIn.Value()), | ||
| LeaseOut: uint64(fullBalance.leaseOut + diffAmount.leaseOut.Value()), | ||
| LeaseIn: uint64(fullBalance.LeaseIn + diffAmount.leaseIn.Value()), //nolint:gosec // As described above. | ||
| LeaseOut: uint64(fullBalance.LeaseOut + diffAmount.leaseOut.Value()), //nolint:gosec // As described above. |
Check failure
Code scanning / gosec
integer overflow conversion uint64 -> uint32 Error
No description provided.