memoffset

offset_of functionality for Rust structs.

0.9.1Latest, 26 Mar 2024
169MDownloads, last 90 days
0Advisories on the latest
4Advisories, all versions
MITLicence
235Stars
3.5/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
Moderate memoffset allows reading uninitialized memory GHSA-wfg4-322g-9vqv Fixed in 0.6.2 21 Jun 2023
memoffset allows reading uninitialized memory RUSTSEC-2023-0045 Fixed in 0.6.2 21 Jun 2023
High Exposure of uninitialized memory in memoffset CVE-2019-15553 Fixed in 0.5.0 25 Aug 2021
Flaw in offset_of and span_of causes SIGILL, drops uninitialized memory of arbitrary type on panic in client code CVE-2019-15553 Fixed in 0.5.0 16 Jul 2019

Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.