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

Implement a separate pass for checking the size of encoded structures. #16

Closed
TyOverby opened this issue Jan 9, 2015 · 1 comment
Closed

Comments

@TyOverby
Copy link
Collaborator

@TyOverby TyOverby commented Jan 9, 2015

When the user has bounded the size during serialization, instead of checking the size bounds while writing to the out buffer, run a separate pass through the serialization API to check what the size would be before writing starts.

This means that all oversized messages will be caught before they pollute the output target.

@TyOverby
Copy link
Collaborator Author

@TyOverby TyOverby commented Jan 16, 2015

Added in 8f5c102

@TyOverby TyOverby closed this Jan 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.