Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 add checks to avoid panicking when decoding proofs with sp-trie #257

Closed
wants to merge 1 commit into from

Conversation

TDemeco
Copy link
Contributor

@TDemeco TDemeco commented Nov 14, 2024

This happens because we accept arbitrary proofs from users, and sp-trie has an issue where a purposely crafted bad proof makes it panic when decoding it (instead of returning an error).

I've already opened a PR to fix it upstream but in the meantime we need this fix to allow the auditors to keep testing.

@TDemeco
Copy link
Contributor Author

TDemeco commented Nov 19, 2024

Closed as this is fixed in #258

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