Report aliasing violation and data race in disrustor

This commit is contained in:
Ammar Askar
2021-03-29 12:31:24 -07:00
parent ca8a60b7be
commit 8923895323

View File

@@ -0,0 +1,21 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "disrustor"
date = "2020-12-17"
url = "https://github.com/sklose/disrustor/issues/1"
categories = ["memory-corruption", "thread-safety"]
[versions]
patched = []
```
# RingBuffer can create multiple mutable references and cause data races
The `RingBuffer` type retrieves mutable references from the `DataProvider` in a
non-atomic manner, potentially allowing the creation of multiple mutable
references. `RingBuffer` also implements the `Send` and `Sync` traits for all
types `T`.
This allows undefined behavior from the aliased mutable references as well
as data races.