GitHub Advisory Database
GHSA-9pqx-g3jh-qpqq
Dangling reference in `access::Map` with Constant
Details
An issue has been discovered in the arc-swap crate before 0.4.8 (and 1.x before 1.1.0) for Rust. Use of arc_swap::access::Map with the Constant test helper (or with a user-supplied implementation of the Access trait) could sometimes lead to dangling references being returned by the map.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | arc-swap | From 0.4.2 before 0.4.8 (fixed in 0.4.8) |
| crates.io | arc-swap | From 1.0.0 before 1.1.0 (fixed in 1.1.0) |