prettytable-rs
Affected
- introduced
0.0.0-0, fixed0.10.0(semver)
Fixed versions
0.10.0
Fix
- Fixed version
0.10.0cargo update -p prettytable-rs --precise 0.10.0
Advisory
Also known as: GHSA-gfgm-chr3-x6px
Force cast a &Vec<T> to &[T]
In function Table::as_ref, a reference of vector is force cast to slice. There are multiple problems here:
Vec::shrink_to_fit. The function requires a mutable reference, so we have to force cast from immutable to mutable, which is UB.&Vec<T> and &[T] still might not have the same layout. Treating them equally may lead to UB.Not rated by the source.
0.0.0-0, fixed 0.10.0 (semver)0.10.0
0.10.0cargo update -p prettytable-rs --precise 0.10.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0