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 VariableList pre-allocation bug! #6

Merged
merged 1 commit into from Mar 13, 2023
Merged

Conversation

michaelsproul
Copy link
Member

Fix a bug introduced in #3 which caused excessively large allocations when the iterator provided a large size hint and the max length of the type was also large.

@michaelsproul
Copy link
Member Author

I have yanked the affected v0.5.1 version of the crate.

Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, sorry I missed this!

@michaelsproul
Copy link
Member Author

No prob! I've had this lying around for months for tree-states and never realised!

@michaelsproul michaelsproul merged commit 78a5064 into main Mar 13, 2023
benluelo pushed a commit to unionlabs/ssz_types that referenced this pull request Jun 30, 2023
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.

None yet

2 participants