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

Const checks or tests to ensure messages fit in buffers #763

Open
andrewdavidmackenzie opened this issue Dec 22, 2024 · 0 comments
Open

Comments

@andrewdavidmackenzie
Copy link
Owner

In porky in particular (as buffers are statically allocated and of fixed size), implement some checks to ensure that buffers are big enough to take the serialization of the messages that pass.

Probably need to generate a lot of variants of each message type, serialize them in tests and check versus some constant - that is used in the code for the size of static buffers.

@andrewdavidmackenzie andrewdavidmackenzie added this to the 0.6.0 milestone Dec 22, 2024
@andrewdavidmackenzie andrewdavidmackenzie removed this from the 0.6.0 milestone Jan 13, 2025
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

No branches or pull requests

1 participant