Skip to content

fix: validate proof length during deserialization#118

Open
huahuayu wants to merge 1 commit intomegaeth-labs:mainfrom
huahuayu:fix/proof-deserialization-validation
Open

fix: validate proof length during deserialization#118
huahuayu wants to merge 1 commit intomegaeth-labs:mainfrom
huahuayu:fix/proof-deserialization-validation

Conversation

@huahuayu
Copy link

This PR adds validation for the length of the byte slice during proof deserialization in and . This prevents potential panics when processing malformed input.

Changes:

  • Added length check in instead of using .
  • Added length check in .
  • Added a test case to verify error handling for short input.

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