Skip to content

mixing: add missing bounds check#2637

Open
dajohi wants to merge 1 commit into
decred:masterfrom
dajohi:mixing_check
Open

mixing: add missing bounds check#2637
dajohi wants to merge 1 commit into
decred:masterfrom
dajohi:mixing_check

Conversation

@dajohi
Copy link
Copy Markdown
Member

@dajohi dajohi commented Jun 1, 2026

No description provided.

Comment thread wallet/mixing.go
return err
}
if output.Index >= uint32(len(txDetails.MsgTx.TxOut)) {
return fmt.Errorf("index out of range: index:%d txouts:%d",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

save this to an error variable, then return errors.E(op, errors.Invalid, err).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants