Advisory

RUSTSEC-2023-0081

Also known as: None

Summary

safemem is unmaintained

Details

The latest crates.io release was in 2019. The repository has been archived by the author.

Migration

  • safemem::copy_over(slice, src_idx, dest_idx, len); can be replaced with slice.copy_within(src_idx..src_idx+len, dest_idx); as of rust 1.37.0.
  • safemem::write_bytes(slice, byte); can be replaced with slice.fill(byte); as of rust 1.50.0
  • safemem::prepend(slice, vec); can be replaced with
  let old_len = vec.len();
  vec.extend_from_slice(slice);
  vec.rotate_left(old_len);

as of rust 1.26.0

Severity

Not rated by the source.

Dates

Published
2023-02-14 12:00 UTC
Modified
2024-03-04 18:47 UTC

Affected packages and fixes

safemem

crates.io · All systems

Affected

  • introduced 0.0.0-0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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: RustSec Advisory Database · CC0-1.0

Sources & licences