OSV 1.4.0 · github-reviewed · 修改于 2023-06-14 06:27
发布时间
2021-08-26 05:00
GitHub 审查时间
2021-08-06 05:37
NVD 发布时间
—
源文件
advisories/github-reviewed/2021/08/GHSA-pfjq-935c-4895/GHSA-pfjq-935c-4895.json
Affected versions of this crate unconditionally implement Sync for SyncRef<T>. This definition allows data races if &T is accessible through &SyncRef.
SyncRef<T> derives Clone and Debug, and the default implementations of those traits access &T by invoking T::clone() & T::fmt(). It is possible to create data races & undefined behavior by concurrently invoking SyncRef<T>::clone() or SyncRef<T>::fmt() from multiple threads with T: !Sync.