mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2025-12-31 00:30:25 +01:00
Report 0036-bunch to RustSec
This commit is contained in:
18
crates/bunch/RUSTSEC-0000-0000.md
Normal file
18
crates/bunch/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,18 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "bunch"
|
||||
date = "2020-11-12"
|
||||
url = "https://github.com/krl/bunch/issues/1"
|
||||
categories = ["memory-corruption"]
|
||||
|
||||
[versions]
|
||||
patched = []
|
||||
```
|
||||
|
||||
# `impl Sync for Bunch<T>` needs a Sync bound on T
|
||||
|
||||
Affected versions of this crate unconditionally implements `Sync` for `Bunch<T>`.
|
||||
This allows users to insert `T: !Sync` to `Bunch<T>`. It is possible to create a data race to a `T: !Sync` by invoking the `Bunch::get()` API (which returns `&T`) from multiple threads.
|
||||
|
||||
Such data races can lead to memory corruption.
|
||||
Reference in New Issue
Block a user