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

read: use Vec::try_reserve_exact for large allocations #632

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

philipc
Copy link
Contributor

@philipc philipc commented Feb 12, 2024

This changes the buffers allocated in ReadCache and for decompression.

This would also cause the test added in #630 to pass (it's still better to have the fix in #630 though).

Closes #204

@philipc philipc merged commit 1c618a2 into gimli-rs:master Feb 13, 2024
12 checks passed
@philipc philipc deleted the try_reserve branch February 13, 2024 02:32
mcbegamerxx954 pushed a commit to mcbegamerxx954/object that referenced this pull request Jun 15, 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.

Don't use Vec::with_capacity with untrusted lengths
1 participant