Skip to content

backport: consensus: Add CompactSize range check to deserialization#5921

Open
tcharding wants to merge 1 commit intorust-bitcoin:0.32.xfrom
tcharding:push-yxpsksqvkzss
Open

backport: consensus: Add CompactSize range check to deserialization#5921
tcharding wants to merge 1 commit intorust-bitcoin:0.32.xfrom
tcharding:push-yxpsksqvkzss

Conversation

@tcharding
Copy link
Copy Markdown
Member

Manually backport #5697. On master the VarInt type is gone but the deserialization bug fixed by 5697 exists here none the less.

Add the same range check to Decodable for VarInt.

Manually backport rust-bitcoin#5697. On `master` the `VarInt` type is gone but the
deserialization bug fixed by 5697 exists here none the less.

Add the same range check to `Decodable for VarInt`.
@nymius
Copy link
Copy Markdown

nymius commented Mar 30, 2026

I've noticed these changes were applied on master in #5697, I should have commented there first.

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

Labels

C-bitcoin PRs modifying the bitcoin crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants