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

Fix Array Deserialization Panic #837

Merged
merged 8 commits into from
Jun 19, 2024
Merged

Conversation

ggwpez
Copy link
Contributor

@ggwpez ggwpez commented Jun 19, 2024

Description

Use ArrayVec - as suggested here - to remove an unwrap in the decoding of arrays.

closes: #834


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (master)
  • Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the GitHub PR explorer

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@burdges
Copy link
Contributor

burdges commented Jun 19, 2024

Just use arrayvec here, my code stupidly had a memopry leak if T allocates. #834 (comment)

serialize/src/lib.rs Outdated Show resolved Hide resolved
@ggwpez ggwpez marked this pull request as ready for review June 19, 2024 15:36
@ggwpez ggwpez requested review from a team as code owners June 19, 2024 15:36
@ggwpez ggwpez requested review from z-tech, mmagician and weikengchen and removed request for a team June 19, 2024 15:36
serialize/src/impls.rs Outdated Show resolved Hide resolved
ggwpez and others added 3 commits June 19, 2024 18:10
@mmagician mmagician added this pull request to the merge queue Jun 19, 2024
Merged via the queue into arkworks-rs:master with commit 79a5fe3 Jun 19, 2024
37 checks passed
@xlc xlc mentioned this pull request Sep 24, 2024
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.

Deserialization of array can panic
4 participants