RUSTSEC-2023-0081 – safemem
Package
Manager: cargo
Name: safemem
Vulnerable Version: >=0.0.0-0
Severity
Level: Low
CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
EPSS: N/A pctlN/A
Details
safemem is unmaintained 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 ```rust let old_len = vec.len(); vec.extend_from_slice(slice); vec.rotate_left(old_len); ``` as of `rust 1.26.0`
Metadata
Created: 2023-02-14T12:00:00Z
Modified: 2024-03-04T18:47:07Z
Source: https://osv-vulnerabilities
CWE IDs: N/A
Alternative ID: N/A
Finding: F079
Auto approve: 1