rustsec-2023-0081
Vulnerability from osv_rustsec
Published
2023-02-14 12:00
Modified
2024-03-04 18:47
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 withslice.copy_within(src_idx..src_idx+len, dest_idx);as ofrust 1.37.0.safemem::write_bytes(slice, byte);can be replaced withslice.fill(byte);as ofrust 1.50.0safemem::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
{
"affected": [
{
"database_specific": {
"categories": [],
"cvss": null,
"informational": "unmaintained"
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [],
"functions": [],
"os": []
}
},
"package": {
"ecosystem": "crates.io",
"name": "safemem",
"purl": "pkg:cargo/safemem"
},
"ranges": [
{
"events": [
{
"introduced": "0.0.0-0"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [],
"database_specific": {
"license": "CC0-1.0"
},
"details": "The latest crates.io release was in 2019. The repository has been archived by the author.\n\n## Migration\n\n- `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`.\n- `safemem::write_bytes(slice, byte);` can be replaced with `slice.fill(byte);` as of `rust 1.50.0`\n- `safemem::prepend(slice, vec);` can be replaced with\n\n ```rust\n let old_len = vec.len();\n vec.extend_from_slice(slice);\n vec.rotate_left(old_len);\n ```\n \n as of `rust 1.26.0`",
"id": "RUSTSEC-2023-0081",
"modified": "2024-03-04T18:47:07Z",
"published": "2023-02-14T12:00:00Z",
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/safemem"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2023-0081.html"
},
{
"type": "WEB",
"url": "https://github.com/abonander/safemem"
}
],
"related": [],
"severity": [],
"summary": "safemem is unmaintained"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…