We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Cross post of rust-lang/rust#54628. See the thread for more details. The content below is a dumb summary.
Bad example
// resize let mut vec1 = Vec::with_capacity(len); vec1.resize(len, 0); // extend let mut vec2 = Vec::with_capacity(len); vec2.extend(repeat(0).take(len))
Also some unsafe approaches exist, but it's TBD.
Good example
// vec! macro let mut vec3 = vec![0; len];
The text was updated successfully, but these errors were encountered:
Bit of context for people interested on that one: https://medium.com/@shnatsel/how-ive-found-vulnerability-in-a-popular-rust-crate-and-you-can-too-3db081a67fb
Sorry, something went wrong.
No branches or pull requests
Cross post of rust-lang/rust#54628. See the thread for more details. The content below is a dumb summary.
Bad example
Also some unsafe approaches exist, but it's TBD.
Good example
The text was updated successfully, but these errors were encountered: