orx-pinned-vec
Affected
- introduced
0.0.0-0, fixed3.21.0(semver)
Fixed versions
3.21.0
Fix
- Fixed version
3.21.0cargo update -p orx-pinned-vec --precise 3.21.0
Advisory
Also known as: GHSA-h5j3-crg5-8jqm
Undefined behavior in index_of_ptr with empty slices
The safe function index_of_ptr causes undefined behavior when called with an empty slice.
The issue occurs in the line ptr.add(slice.len() - 1) which underflows when slice.len() is 0, creating a pointer with a massive offset. According to Rust's safety rules, creating such a pointer causes immediate undefined behavior.
Not rated by the source.
0.0.0-0, fixed 3.21.0 (semver)3.21.0
3.21.0cargo update -p orx-pinned-vec --precise 3.21.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