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

regenerate ssz types w/ variable-len bounds checks #8936

Merged
merged 7 commits into from
May 26, 2021

Conversation

kasey
Copy link
Contributor

@kasey kasey commented May 24, 2021

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?
This updates the generated ssz unmarshaling logic with a fix for ferranbt/fastssz#44

Which issues(s) does this PR fix?

Fixes #8935

Other notes for review

Please be sure to merge the fastssz changes [1] and bump the pinned version in go.mod before merging this generated code, because the generated code uses a new error type, also included in the fastssz PR.

[1] ferranbt/fastssz#45

@kasey kasey requested a review from a team as a code owner May 24, 2021 22:02
@kasey kasey requested review from farazdagi, jmozah and rauljordan May 24, 2021 22:02
@kasey kasey changed the title regenerate ssz types w/ variable-len bounds checks WIP regenerate ssz types w/ variable-len bounds checks May 24, 2021
@codecov
Copy link

codecov bot commented May 25, 2021

Codecov Report

Merging #8936 (d3aebdc) into develop (276d035) will decrease coverage by 0.10%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #8936      +/-   ##
===========================================
- Coverage    60.95%   60.84%   -0.11%     
===========================================
  Files          530      531       +1     
  Lines        37488    37738     +250     
===========================================
+ Hits         22849    22960     +111     
- Misses       11366    11493     +127     
- Partials      3273     3285      +12     

@kasey kasey changed the title WIP regenerate ssz types w/ variable-len bounds checks regenerate ssz types w/ variable-len bounds checks May 26, 2021
@rauljordan rauljordan merged commit 8094c1c into develop May 26, 2021
@delete-merged-branch delete-merged-branch bot deleted the check-variable-offset branch May 26, 2021 21:47
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.

Protect against malformed ssz values in unmarshaling
2 participants