RustSec Advisory Database
RUSTSEC-2020-0091
Dangling reference in `access::Map` with Constant
Details
Using the arc_swap::access::Map with the Constant test helper (or with user-provided implementation of the Access trait) could sometimes lead to the map returning dangling references.
Replaced by implementation without unsafe, at the cost of added Clone bound on the closure and small penalty on performance.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | arc-swap | From 0.4.2 before 0.4.8 (fixed in 0.4.8) From 1.0.0-0 before 1.1.0 (fixed in 1.1.0) |