-
Notifications
You must be signed in to change notification settings - Fork 2
Memory safety issues in compact::Vec
#8
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
Comments
Run result in 32-bit with
|
In addition, creating a reference that points to an invalid value is already an undefined behavior, even if it is not dereferenced. Line 161 in e1f1e3b
Lines 295 to 298 in e1f1e3b
I don't see any location where |
Hello, we have noticed a soundness issue and/or a potential security vulnerability in this crate while performing a security scan on crates.io.
Description
compact::Vec
contains multiple memory safety issues.remove()
is not panic-safe and causes double-free when an index larger than the length is provided.Demonstration
Output:
Return Code: 101
The text was updated successfully, but these errors were encountered: