mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-07-16 00:12:29 -04:00
Update affected versions in RUSTSEC-2026-0097
This commit is contained in:
committed by
Dirkjan Ochtman
parent
6617d543e3
commit
350e2f43cc
@@ -31,4 +31,4 @@ It has been reported (by @lopopolo) that the `rand` library is [unsound](https:/
|
||||
|
||||
`TryRng` (previously `RngCore`) methods for `ThreadRng` use `unsafe` code to cast `*mut BlockRng<ReseedingCore>` to `&mut BlockRng<ReseedingCore>`. When all the above conditions are met this results in an aliased mutable reference, violating the Stacked Borrows rules. Miri is able to detect this violation in sample code. Since construction of [aliased mutable references is Undefined Behaviour](https://doc.rust-lang.org/stable/nomicon/references.html), the behaviour of optimized builds is hard to predict.
|
||||
|
||||
Affected versions of `rand` are `>= 0.7, < 0.9.3` and `0.10.0`.
|
||||
Affected versions of `rand` are `>= 0.7, < 0.8.6`, >= `0.9.0, < 0.9.3`, and `0.10.0`.
|
||||
|
||||
Reference in New Issue
Block a user