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 from_slice possible overallocation #122

Merged
merged 1 commit into from
Aug 23, 2018

Commits on Aug 23, 2018

  1. fix from_slice possible overallocation

    @arthurps found that the code would underreport the vec's capacity
    if `slice.to_vec()` allocated more than `len` entries. This
    changes the code to set the correct capacity as reported from the
    `vec`.
    llogiq committed Aug 23, 2018
    Configuration menu
    Copy the full SHA
    3400726 View commit details
    Browse the repository at this point in the history