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

Limit pre-alloc size #5

Closed
vlopes11 opened this issue Oct 24, 2021 · 1 comment
Closed

Limit pre-alloc size #5

vlopes11 opened this issue Oct 24, 2021 · 1 comment

Comments

@vlopes11
Copy link
Member

Currently, the implementation trusts the provided message and pre-alloc bytes before reading the buffer.

The implementation should either pre-alloc if, and only if, the reader is guaranteed to have enough bytes, or pre-alloc smaller amounts.

Naive pre-alloc may allow malicious users to DDoS

@vlopes11
Copy link
Member Author

vlopes11 commented Jun 7, 2023

@vlopes11 vlopes11 closed this as completed Jun 7, 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