OSV 1.4.0 · github-reviewed · 修改于 2021-08-25 01:44
发布时间
2021-08-26 05:00
GitHub 审查时间
2021-08-07 03:10
NVD 发布时间
—
源文件
advisories/github-reviewed/2021/08/GHSA-vj88-5667-w56p/GHSA-vj88-5667-w56p.json
该公告已于 2021-08-25 01:44 撤回
内容仅用于保留外部引用,请不要将其当作仍然有效的安全结论。
Singleton<T> is meant to be a static object that can be initialized lazily. In
order to satisfy the requirement that static items must implement Sync,
Singleton implemented both Sync and Send unconditionally.
This allows for a bug where non-Sync types such as Cell can be used in
singletons and cause data races in concurrent programs.
The flaw was corrected in commit b0d2bd20e by adding trait bounds, requiring
the contaiend type to implement Sync.