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

Offset checking for Marshall and UnMarshall #413

Open
ionut-arm opened this issue Jun 11, 2023 · 0 comments
Open

Offset checking for Marshall and UnMarshall #413

ionut-arm opened this issue Jun 11, 2023 · 0 comments
Assignees

Comments

@ionut-arm
Copy link
Member

We should add length checking off the input buffers for the _offset version of the marshall and unmarshall trait operations. Currently these methods don't do any checking as to whether the input buffer is shorter than what would be needed to read or write from them.

The checks should be performed before any (un)marshalling calls are made, and should return WrongParamSize if the buffer is not long enough. This return code should also be documented on the trait methods.

@ionut-arm ionut-arm self-assigned this Jun 11, 2023
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