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

feat(encoding): add max length check for bytes #1399

Merged
merged 12 commits into from
Feb 11, 2022
Merged

feat(encoding): add max length check for bytes #1399

merged 12 commits into from
Feb 11, 2022

Conversation

clearloop
Copy link
Contributor

@clearloop clearloop commented Jan 25, 2022

Summary of changes

  • add constants BYTE_ARRAY_MAX_LEN
  • support length check for []byte/Vec<u8> ( introduce serde_byte_array )

Reference issue to close (if applicable)

Closes #1335

Other information and links

@clearloop clearloop marked this pull request as ready for review February 10, 2022 08:51
@q9f q9f merged commit a0de725 into ChainSafe:main Feb 11, 2022
@clearloop clearloop deleted the cl/bounded-vec branch February 11, 2022 17:00
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

Successfully merging this pull request may close these issues.

C7: []byte field serde missing max length checks
4 participants