Advisory

GHSA-jmwx-r3gq-qq3p

Also known as: CVE-2021-45680, GHSA-x76r-966h-5qv9, RUSTSEC-2021-0082

Summary

vec-const attempts to construct a Vec from a pointer to a const slice

Details

Affected versions of this crate claimed to construct a const Vec with nonzero length and capacity, but that cannot be done because such a Vec requires a pointer from an allocator.

The implementation was later changed to just construct a std::borrow::Cow.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-06-17 00:27 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

vec-const

crates.io · All systems

Affected

  • introduced 0, fixed 2.0.0 (semver)

Fixed versions

2.0.0

Fix

  • Fixed version 2.0.0
    cargo update -p vec-const --precise 2.0.0

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences