Skip to content

fix(eth): reject negative slot identifiers#253

Open
samcm wants to merge 2 commits into
masterfrom
fix/reject-negative-slots
Open

fix(eth): reject negative slot identifiers#253
samcm wants to merge 2 commits into
masterfrom
fix/reject-negative-slots

Conversation

@samcm

@samcm samcm commented Jun 12, 2026

Copy link
Copy Markdown
Member

Slot block and state identifiers were parsed with ParseInt, so a negative value like -1 was accepted as a valid slot and then wrapped to a huge uint64. It only ever produced a store miss, but the request was treated as well-formed rather than rejected.

Slot parsing now uses ParseUint, so negative identifiers are classified as invalid and return a 400. This also removes the now-unnecessary gosec suppression on the slot conversion.

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.

1 participant