mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2025-12-31 08:40:26 +01:00
Clarify description for issue found in 'libsbc'
This commit is contained in:
@@ -11,9 +11,9 @@ informational = "unsound"
|
||||
patched = [">= 0.1.5"]
|
||||
```
|
||||
|
||||
# Minor soundness issue with Decoder's Send trait
|
||||
# `Decoder<R>` can carry `R: !Send` to other threads
|
||||
|
||||
Affected versions of this crate implements `Send` for `Decoder<R>` for any `R: Read`. This allows to use `R: !Send` in `Decoder<R>` to send a non-Send type to another thread.
|
||||
Affected versions of this crate implements `Send` for `Decoder<R>` for any `R: Read`. This allows `Decoder<R>` to contain `R: !Send` and carry (move) it to another thread.
|
||||
|
||||
This can result in undefined behavior such as memory corruption from data race on `R`, or dropping `R = MutexGuard<_>` from a thread that didn't lock the mutex.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user