Skip to content

Rust bitcoin 0.27 - #2

Open
muliadibrave wants to merge 4 commits into
masterfrom
rust-bitcoin-0.27
Open

Rust bitcoin 0.27#2
muliadibrave wants to merge 4 commits into
masterfrom
rust-bitcoin-0.27

Conversation

@muliadibrave

Copy link
Copy Markdown
Owner

https://tea.xyz/what-is-this-file


version: 1.0.0
codeOwners:

  • '0xF28A293A97726831E04D98E97AF826Fe8ee1FB9f'
    quorum: 1

Kixunil and others added 4 commits September 20, 2021 14:08
This adds an overflow check in `Script::bytes_to_asm_fmt()` motivated by
`electrs` issue. While it was not tested yet, I'm very confident that
overflow is the cause of panic there and even if not it can cause panic
becuase the public function takes unvalidated byte array and reads
`data_len` from it.

The `electrs` issue: romanz/electrs#490
This adds a test case for script formatting which caused overflow in the
past and a few others from the same "interesting" transaction. Note that
to trigger the bug one has to run the test on 32 bit architecture.
…ow in Script::bytes_to_asm_fmt()

6c3434c bump version to 0.27.1 (Andrew Poelstra)
8a529e6 Added test for the overflow bug and few others (Martin Habovstiak)
78b152e Check for overflow in Script::bytes_to_asm_fmt() (Martin Habovstiak)

Pull request description:

  Backport of #658

ACKs for top commit:
  apoelstra:
    ACK 6c3434c
  sanket1729:
    ACK 6c3434c. Same as #658 which I ACKed

Tree-SHA512: ad9e02e2c748467b351039c3ab7f23b9902507cfa45d7d1084bfbaaad1ff7a1f22327b7311849f18a1a03dfd354a9424a74b125a2f412b9f6f678979a037df0a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants