-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update unsound DrainFilter and RString::retain #44
Comments
rodrimati1992
added a commit
that referenced
this issue
Dec 21, 2020
These methods copied their implementation from the standard library, which had memory safety bugs discovered in rust-lang/rust#60977 and rust-lang/rust#78498 . This bug was reported in #44 . Added adapted tests from std which test these bugs.
That you for reporting this, I'll be making the 0.9.1 patch in the 0_9_patch branch. I'll wait at least 18 hours before releasing the patch. |
Thank you for the quick fix! |
rodrimati1992
added a commit
that referenced
this issue
Dec 22, 2020
* Fixed String::retain, RVec::retain. Bumped patch version to 0.9.1 . These methods copied their implementation from the standard library, which had memory safety bugs discovered in rust-lang/rust#60977 and rust-lang/rust#78498 . This bug was reported in #44 . Added adapted tests from std which test these bugs. * Updated changelog for patch
I've released the patch for this, so I'm closing this now. |
rodrimati1992
added a commit
that referenced
this issue
Nov 22, 2022
* Fixed String::retain, RVec::retain. Bumped patch version to 0.9.1 . These methods copied their implementation from the standard library, which had memory safety bugs discovered in rust-lang/rust#60977 and rust-lang/rust#78498 . This bug was reported in #44 . Added adapted tests from std which test these bugs. * Updated changelog for patch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, we (Rust group @sslab-gatech) found a memory-safety/soundness issue in this crate while scanning Rust code on crates.io for potential vulnerabilities.
abi_stable_crates/abi_stable/src/std_types/vec/iters.rs
Lines 292 to 320 in 2bff3b3
abi_stable_crates/abi_stable/src/std_types/string.rs
Lines 636 to 670 in 2bff3b3
These two implementations are copy-pasted from Rust's standard library, and unfortunately it turns out that std implementations were containing soundness bugs (rust-lang/rust#60977 and rust-lang/rust#78498, respectively). Could you check them and update the respective part of this crate?
The text was updated successfully, but these errors were encountered: