Report 0036-bunch to RustSec

This commit is contained in:
JOE1994
2021-01-25 17:32:07 -05:00
parent 773a35e313
commit bcb1204ff2

View 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.