RUSTSEC-2020-0150

RingBuffer can create multiple mutable references and cause data races

Issued
Package
disrustor (crates.io)
Type
Vulnerability
Categories
  • memory-corruption
  • thread-safety
Details
https://github.com/sklose/disrustor/issues/1
Patched
no patched versions

Description

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.

More