Skip to content

state: Harden all *FromBytes routine#447

Merged
poolpOrg merged 1 commit into
mainfrom
mm/harden_state_entries_parsing
May 29, 2026
Merged

state: Harden all *FromBytes routine#447
poolpOrg merged 1 commit into
mainfrom
mm/harden_state_entries_parsing

Conversation

@mathieu-plak
Copy link
Copy Markdown
Contributor

  • Next() doesn't really do what I thought it did and we can actually have short reads on those and panic later on when trying to interpret that buffer as an integer.

  • To fix this for now before a biffer refactor, let's just guard all this function with a size check!

* Next() doesn't really do what I thought it did and we can actually
  have short reads on those and panic later on when trying to interpret
  that buffer as an integer.

* To fix this for now before a biffer refactor, let's just guard all
  this function with a size check!
@mathieu-plak mathieu-plak force-pushed the mm/harden_state_entries_parsing branch from 43fcd8e to 8fd74c8 Compare May 29, 2026 13:24
@poolpOrg poolpOrg merged commit cb235c3 into main May 29, 2026
7 checks passed
@poolpOrg poolpOrg deleted the mm/harden_state_entries_parsing branch May 29, 2026 13:47
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