Skip to content

fix(verify): prevent compressed proof memory exhaustion - #3153

Open
felix314159 wants to merge 1 commit into
openvm-org:mainfrom
felix314159:main
Open

felix314159 wants to merge 1 commit into
openvm-org:mainfrom
felix314159:main

Conversation

@felix314159

Copy link
Copy Markdown

Summary

decode compressed proofs directly from zstd::Decoder instead of fully inflating them before validation. this pr prevents malformed proof submissions from exhausting verifier memory while preserving strict trailing-byte rejection.

i also added a unit test that generates a sub-64 KiB payload representing 512 MiB of decompressed data and confirms decoding stops after the four-byte invalid codec version

This branch has not been deployed

No deployments
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