Skip to content

fix(opstack): reject short decompressed gossip commitments - #866

Open
ninglinLiu wants to merge 1 commit into
a16z:masterfrom
ninglinLiu:fix/opstack-short-gossip-commitment
Open

ninglinLiu wants to merge 1 commit into
a16z:masterfrom
ninglinLiu:fix/opstack-short-gossip-commitment

Conversation

@ninglinLiu

Copy link
Copy Markdown

Summary

SequencerCommitment::new sliced &decompressed[..65] before checking length. A gossip message that decompresses to fewer than 65 bytes panicked; with panic = \"abort\" that stops the opstack server.

Return an eyre error instead so BlockHandler::handle can Reject the message.

Fixes

Fixes #850

Test plan

  • cargo test -p helios-opstack sequencer_commitment_rejects_short — new unit test passes

This PR was prepared with AI assistance and reviewed/tested by the author.

SequencerCommitment::new sliced `[..65]` before checking length, so a
short decompressed gossip payload panicked. With panic=abort that takes
down the opstack server. Return an error instead so BlockHandler can Reject.

Fixes a16z#850

This PR was prepared with AI assistance and reviewed/tested by the author.
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.

opstack server: a gossip message under 65 bytes crashes the server

1 participant