Lucene search

K
osvGoogleOSV:RUSTSEC-2020-0136
HistoryNov 15, 2020 - 12:00 p.m.

CopyCell lacks bounds on its Send trait allowing for data races

2020-11-1512:00:00
Google
osv.dev
7
copycell
data races
send trait
bounds
thread safe

EPSS

0.002

Percentile

58.8%

CopyCell<T> is a Cell-like type that is implemented for any type T that
is Copyable. It’s Send trait has no bounds on the contained type.

As not all Copyable types are thread safe, for example non-mutable references
implement the Copy trait, it is possible to send references to types with
interior mutability such as Cell across threads and cause data races.

EPSS

0.002

Percentile

58.8%

Related for OSV:RUSTSEC-2020-0136