RustSec Advisory Database
RUSTSEC-2021-0036
Intern<T>: Data race allowed on T
Details
Affected versions of this crate unconditionally implements Sync for Intern<T>. This allows users to create data race on T: !Sync, which may lead to undefined behavior (for example, memory corruption).
The flaw was corrected in commit 2928a87 by adding the trait bound T: Sync in the Sync impl of Intern<T>.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | internment | From 0.0.0-0 before 0.4.2 (fixed in 0.4.2) |