Skip to content

Conversation

@apoelstra
Copy link
Member

It is possible to cause a panic by calling TxIn::pegin_data on a malformed pegin, which has 6 entries and the last one (which should be a Merkle proof of block inclusion) is too small to even have a blockhash in it.

On the actual chain this should not be possible because invalid pegin data would be rejected.

@apoelstra
Copy link
Member Author

CI failure is an unrelated thing; I have another branch I'm working on to fix clippy and update things but I'm seeing a weird bug with clippy.

Copy link
Member

@delta1 delta1 left a comment

Choose a reason for hiding this comment

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

ACK f86e219

@apoelstra apoelstra mentioned this pull request Jun 19, 2024
apoelstra added a commit that referenced this pull request Jun 20, 2024
8d58ec3 clippy: use u32::MAX rather than u32::max_value (Andrew Poelstra)
172e36b clippy: fix indentation in documentation (Andrew Poelstra)
4ab1b77 blech32: delete unconstructable iterator struct (Andrew Poelstra)
a89ff6e fix a couple feature gates (Andrew Poelstra)

Pull request description:

  Do some cleanups and get CI working again.

  Will rebase #203 on this.

ACKs for top commit:
  delta1:
    ACK 8d58ec3

Tree-SHA512: 62ca188d031e71e39279b7407cef746ea4bec2c72baad633603fd67834efa6774027b060d20fddbb9bfff609b676b1b6d2f20a1c663e7fea207a3b08772e3e0c
It is possible to cause a panic by calling `TxIn::pegin_data` on a
malformed pegin, which has 6 entries and the last one (which should be a
Merkle proof of block inclusion) is too small to even have a blockhash
in it.

On the actual chain this should not be possible because invalid pegin
data would be rejected.
@apoelstra apoelstra force-pushed the 2024-06--pegin-parse branch from f86e219 to 639c964 Compare June 20, 2024 23:47
@apoelstra
Copy link
Member Author

Rebased. Ready for re-review.

@delta1
Copy link
Member

delta1 commented Jun 21, 2024

reACK 639c964

@delta1 delta1 merged commit 9cbb637 into master Jun 21, 2024
@apoelstra apoelstra deleted the 2024-06--pegin-parse branch June 21, 2024 15:05
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.

3 participants