Skip to content

core/types: fix panic on invalid signature length#33647

Merged
gballet merged 1 commit into
ethereum:masterfrom
BZO95:fix-sig-panic
Jan 21, 2026
Merged

core/types: fix panic on invalid signature length#33647
gballet merged 1 commit into
ethereum:masterfrom
BZO95:fix-sig-panic

Conversation

@BZO95

@BZO95 BZO95 commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Replace panic with error return in decodeSignature to prevent crashes on invalid inputs, and update callers to propagate the error.

@gballet gballet added this to the 1.17.0 milestone Jan 21, 2026
@gballet gballet merged commit 8fad02a into ethereum:master Jan 21, 2026
7 of 8 checks passed
gzliudan pushed a commit to gzliudan/XDPoSChain that referenced this pull request Jan 23, 2026
Replace panic with error return in decodeSignature to prevent crashes on
invalid inputs, and update callers to propagate the error.
AnilChinchawale pushed a commit to XinFinOrg/XDPoSChain that referenced this pull request Jan 27, 2026
Replace panic with error return in decodeSignature to prevent crashes on
invalid inputs, and update callers to propagate the error.

Co-authored-by: DeFi Junkie <deffie.jnkiee@gmail.com>
gballet pushed a commit to BZO95/go-ethereum that referenced this pull request May 21, 2026
Replace panic with error return in decodeSignature to prevent crashes on
invalid inputs, and update callers to propagate the error.
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