mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-01 01:00:23 +01:00
Report uninitialized memory drop in adtensor
This commit is contained in:
21
crates/adtensor/RUSTSEC-0000-0000.md
Normal file
21
crates/adtensor/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,21 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "adtensor"
|
||||
date = "2021-01-11"
|
||||
url = "https://github.com/charles-r-earp/adtensor/issues/4"
|
||||
categories = ["memory-corruption"]
|
||||
keywords = ["memory-safety"]
|
||||
|
||||
[versions]
|
||||
patched = []
|
||||
```
|
||||
|
||||
# FromIterator implementation for Vector/Matrix can drop uninitialized memory
|
||||
|
||||
The `FromIterator<T>` methods for `Vector` and `Matrix` rely on the type
|
||||
parameter `N` 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 the
|
||||
`Vector` or `Matrix` type which gets dropped.
|
||||
Reference in New Issue
Block a user