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

Use maxMsgSize #302

Merged
merged 1 commit into from
Apr 9, 2021
Merged

Use maxMsgSize #302

merged 1 commit into from
Apr 9, 2021

Conversation

kaczmarczyck
Copy link
Collaborator

The MAX_MSG_SIZE was only enforced as the default in largeBlobs. We now start to also use it in HID parsing to reject messages that are too long.

Related to the OOM crash reported in #177. Using smaller values can help reduce the maimum possible memory that CBOR is parsed into. The other aspect is the data structures used inside CBOR, those are addressed in future PRs.

@kaczmarczyck kaczmarczyck self-assigned this Apr 8, 2021
@google-cla google-cla bot added the cla: yes label Apr 8, 2021
@kaczmarczyck kaczmarczyck merged commit 054e303 into google:develop Apr 9, 2021
@kaczmarczyck kaczmarczyck deleted the max-msg-size branch April 9, 2021 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants