RUSTSEC-2021-0045
on 2021-01-11: FromIterator implementation for Vector/Matrix can drop uninitialized memory
This crate has no reviews yet. To add a review, set up your cargo-crev
.
Crates in the crates.io registry are tarball snapshots uploaded by crates' publishers. The registry is not using crates' git repositories. There is absolutely no guarantee that the repository URL declared by the crate belongs to the crate, or that the code in the repository is the code inside the published tarball.
To review the actual code of the crate, it's best to use cargo crev open adtensor
. Alternatively, you can download the tarball of adtensor v0.0.3 or view the source online.
The
FromIterator<T>
methods forVector
andMatrix
rely on the type parameterN
to allocate space in the iterable.If the passed in
N
type parameter is larger than the number of items returned by the iterator, it can lead to uninitialized memory being left in theVector
orMatrix
type which gets dropped.CVE-2021-29936
GHSA-rg4m-gww5-7p47