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

epee binary: container can read from empty seq of any type #8940

Merged

Conversation

jeffro256
Copy link
Contributor

Good news: this property holds for current epee binary code in core repo. For real world example of issue brought on if this property is not upheld: monero-rs/monero-epee-bin-serde#49

@jeffro256
Copy link
Contributor Author

@vtnerd does your new wire reading code safety accept any type marker for empty sequences without error?

@vtnerd
Copy link
Contributor

vtnerd commented Jul 7, 2023

These tests should still work with the new serialization engine. The inner type is only checked when processing that first element.

Copy link
Contributor

@rbrunner7 rbrunner7 left a comment

Choose a reason for hiding this comment

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

See the single comment

tests/unit_tests/epee_serialization.cpp Outdated Show resolved Hide resolved
@luigi1111 luigi1111 merged commit b91c433 into monero-project:master Feb 24, 2024
18 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.

None yet

4 participants