mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-02-23 15:38:27 +01:00
Report aliasing violation and data race in disrustor
This commit is contained in:
21
crates/disrustor/RUSTSEC-0000-0000.md
Normal file
21
crates/disrustor/RUSTSEC-0000-0000.md
Normal 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.
|
||||
Reference in New Issue
Block a user