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

Add a test for all-zero stream decoding #599

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

Semisol
Copy link
Contributor

@Semisol Semisol commented Jan 9, 2025

Closes #592

The issue is already fixed on master by this commit. This only adds a test to prevent a future regression.

See github.com/capnproto/issues/592

In an older version of capnp-go, decoding an all-zero stream may cause
a panic when retrieving the root of the decoded message.
Co-authored-by: Filip Petkovski <[email protected]>
Copy link
Collaborator

@lthibault lthibault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, always happy to see more tests! Merging now.

@lthibault lthibault merged commit b4bdc80 into capnproto:main Jan 10, 2025
4 checks passed
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.

Panic on all zero stream
4 participants