Lucene search
+L

4 matches found

Mend
Mend
•added 2024/11/03 10:17 a.m.•4 views

WS-2022-0435

The function Table::asref in prettytable-rs before 0.10.0 contains a reference of vector is force cast to slice...

9.1CVSS5.9AI score
SaveExploits0References5
OSV
OSV
•added 2022/12/30 5:48 p.m.•22 views

GHSA-GFGM-CHR3-X6PX prettytable-rs: Force cast a &Vec<T> to &[T] may lead to undefined behavior

In function Table::asref, a reference of vector is force cast to slice. There are multiple problems here: 1. To guarantee the size is correct, we have to first do Vec::shrinktofit. The function requires a mutable reference, so we have to force cast from immutable to mutable, which is undefined...

7.1AI score
SaveExploits0References3
RustSec
RustSec
•added 2022/12/02 12:00 p.m.•20 views

Force cast a &Vec<T> to &[T]

In function Table::asref, a reference of vector is force cast to slice. There are multiple problems here: 1. To guarantee the size is correct, we have to first do Vec::shrinktofit. The function requires a mutable reference, so we have to force cast from immutable to mutable, which is UB. 2. Even ...

2.1AI score
SaveExploits0Affected Software1
OSV
OSV
•added 2022/12/02 12:00 p.m.•22 views

RUSTSEC-2022-0074 Force cast a &Vec<T> to &[T]

In function Table::asref, a reference of vector is force cast to slice. There are multiple problems here: 1. To guarantee the size is correct, we have to first do Vec::shrinktofit. The function requires a mutable reference, so we have to force cast from immutable to mutable, which is UB. 2. Even ...

7.1AI score
SaveExploits0References3
Rows per page
Query Builder