witnet-rust icon indicating copy to clipboard operation
witnet-rust copied to clipboard

RUSTSEC-2020-0070: Some lock_api lock guard objects can cause data races

Open github-actions[bot] opened this issue 1 year ago • 0 comments

Some lock_api lock guard objects can cause data races

Details
Status unsound
Package lock_api
Version 0.3.4
URL https://github.com/Amanieu/parking_lot/pull/262
Date 2020-11-08

Affected versions of lock_api had unsound implementations of the Send or Sync traits for some guard objects, namely:

  • MappedMutexGuard
  • MappedRwLockReadGuard
  • MappedRwLockWriteGuard
  • RwLockReadGuard
  • RwLockWriteGuard

These guards could allow data races through types that are not safe to Send across thread boundaries in safe Rust code.

This issue was fixed by changing the trait bounds on the Mapped guard types and removing the Sync trait for the RwLock guards.

See advisory page for additional details.

github-actions[bot] avatar Nov 09 '24 00:11 github-actions[bot]