diff --git a/crates/bunch/RUSTSEC-0000-0000.md b/crates/bunch/RUSTSEC-0000-0000.md new file mode 100644 index 0000000..87bf5b2 --- /dev/null +++ b/crates/bunch/RUSTSEC-0000-0000.md @@ -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` needs a Sync bound on T + +Affected versions of this crate unconditionally implements `Sync` for `Bunch`. +This allows users to insert `T: !Sync` to `Bunch`. 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.