mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-01 17:20:33 +01:00
Dangling reference in arc_swap::access::Map (#530)
This commit is contained in:
committed by
GitHub
parent
4e0c71a0d6
commit
80d45a8d18
25
crates/arc-swap/RUSTSEC-0000-0000.md
Normal file
25
crates/arc-swap/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,25 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "arc-swap"
|
||||
date = "2020-12-10"
|
||||
url = "https://github.com/vorner/arc-swap/issues/45"
|
||||
categories = ["memory-corruption"]
|
||||
keywords = ["dangling reference"]
|
||||
|
||||
[versions]
|
||||
patched = [">= 1.1.0", ">= 0.4.8"]
|
||||
unaffected = ["< 0.4.2"]
|
||||
|
||||
[affected]
|
||||
functions = { "arc_swap::access::MapGuard::deref" = ["< 1.1.0"] }
|
||||
```
|
||||
|
||||
# Dangling reference in `access::Map` with Constant
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user