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

Remove len tag parsing from the reflect codec #2559

Merged
merged 3 commits into from
Dec 29, 2023

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

This PR is the first in an attempt to remove slice length parsing restrictions from the reflect codec.

How this works

This PR shouldn't impact any validity rules. The only place the len tag was used in either coreth or avalanchego was vertex parsing. However, vertex verification also enforces this restriction. This means that we may be willing to parse vertices we were previously unwilling to parse, but those new vertices would fail verification. Regardless, because the X-chain was linearized, all vertices already exist and no new vertices will be issued.

How this was tested

  • CI

@StephenButtolph StephenButtolph added the cleanup Code quality improvement label Dec 29, 2023
@StephenButtolph StephenButtolph added this to the v1.10.18 milestone Dec 29, 2023
@StephenButtolph StephenButtolph self-assigned this Dec 29, 2023
@StephenButtolph StephenButtolph added this pull request to the merge queue Dec 29, 2023
Merged via the queue into dev with commit 8618c30 Dec 29, 2023
17 checks passed
@StephenButtolph StephenButtolph deleted the remove-codec-custom-field-len-restrictions branch December 29, 2023 22:16
tedim52 pushed a commit to tedim52/avalanchego that referenced this pull request Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants