futile / enet-rs

High-level bindings for the ENet networking library (http://enet.bespin.org)
Other
39 stars 21 forks source link

RUSTSEC-2022-0006: Data race in `Iter` and `IterMut` #16

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 2 years ago

Data race in Iter and IterMut

Details
Package thread_local
Version 0.3.6
URL https://github.com/Amanieu/thread_local-rs/issues/33
Date 2022-01-23
Patched versions >=1.1.4

In the affected version of this crate, {Iter, IterMut}::next used a weaker memory ordering when loading values than what was required, exposing a potential data race when iterating over a ThreadLocal's values.

Crates using Iter::next, or IterMut::next are affected by this issue.

See advisory page for additional details.

futile commented 2 years ago

Fixed by 014e0af10ba90ae3bf032d29c2602b733f33f3f5