{"id":4174008,"name":"memoffset","ecosystem":"cargo","description":"offset_of functionality for Rust structs.","homepage":null,"licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/Gilnaa/memoffset","keywords_array":["offsetof","mem","offset_of","offset"],"namespace":null,"versions_count":23,"first_release_published_at":"2017-10-17T06:16:56.082Z","latest_release_published_at":"2024-03-26T19:58:31.849Z","latest_release_number":"0.9.1","last_synced_at":"2026-05-31T10:28:12.006Z","created_at":"2022-04-12T18:42:43.129Z","updated_at":"2026-05-31T13:55:32.312Z","registry_url":"https://crates.io/crates/memoffset/","install_command":"cargo install memoffset","documentation_url":"https://docs.rs/memoffset/","metadata":{"categories":["no-std"]},"repo_metadata":{"id":40462132,"uuid":"107177461","full_name":"Gilnaa/memoffset","owner":"Gilnaa","description":"offsetof for Rust","archived":false,"fork":false,"pushed_at":"2024-03-26T19:58:49.000Z","size":160,"stargazers_count":231,"open_issues_count":2,"forks_count":32,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-05-10T18:55:30.305Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gilnaa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-16T20:08:21.000Z","updated_at":"2026-04-07T14:01:24.000Z","dependencies_parsed_at":"2023-11-13T18:29:26.237Z","dependency_job_id":"2ce83ce7-ee48-4078-bf08-cb866bfbae4f","html_url":"https://github.com/Gilnaa/memoffset","commit_stats":{"total_commits":136,"total_committers":20,"mean_commits":6.8,"dds":0.5441176470588236,"last_synced_commit":"153fc3d50f03755be53148bc3eb97390f9011e45"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/Gilnaa/memoffset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gilnaa%2Fmemoffset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gilnaa%2Fmemoffset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gilnaa%2Fmemoffset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gilnaa%2Fmemoffset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gilnaa","download_url":"https://codeload.github.com/Gilnaa/memoffset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gilnaa%2Fmemoffset/sbom","scorecard":{"id":56397,"data":{"date":"2025-08-11","repo":{"name":"github.com/Gilnaa/memoffset","commit":"153fc3d50f03755be53148bc3eb97390f9011e45"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":7,"reason":"Found 10/13 approved changesets -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/Gilnaa/memoffset/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/Gilnaa/memoffset/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Gilnaa/memoffset/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/Gilnaa/memoffset/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/Gilnaa/memoffset/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/Gilnaa/memoffset/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/Gilnaa/memoffset/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/Gilnaa/memoffset/ci.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T00:51:48.066Z","repository_id":40462132,"created_at":"2025-08-15T00:51:48.066Z","updated_at":"2025-08-15T00:51:48.066Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32867988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"tags":[]},"repo_metadata_updated_at":"2026-05-31T13:55:32.284Z","dependent_packages_count":216,"downloads":594172579,"downloads_period":"total","dependent_repos_count":43080,"rankings":{"downloads":0.03244074275196231,"dependent_repos_count":0.07828092272756124,"dependent_packages_count":0.34274349950986266,"stargazers_count":10.47412850765531,"forks_count":10.551704196844785,"docker_downloads_count":0.045134946437512785,"average":3.5874054693211654},"purl":"pkg:cargo/memoffset","advisories":[{"uuid":"GSA_kwCzR0hTQS13Zmc0LTMyMmctOXZxds4AAz-b","url":"https://github.com/advisories/GHSA-wfg4-322g-9vqv","title":"memoffset allows reading uninitialized memory","description":"memoffset allows attempt of reading data from address `0` with arbitrary type. This behavior is an undefined behavior because address `0` to `std::mem::size_of\u003cT\u003e` may not have valid bit-pattern with `T`. Old implementation dereferences uninitialized memory obtained from `std::mem::align_of`. Older implementation prior to it allows using uninitialized data obtained from `std::mem::uninitialized` with arbitrary type then compute offset by taking the address of field-projection. This may also result in an undefined behavior for \"father\" that includes (directly or transitively) type that [does not allow to be uninitialized](https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html).\n\nThis flaw was corrected by using `std::ptr::addr_of` in \u003chttps://github.com/Gilnaa/memoffset/pull/50\u003e.\n","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2023-06-21T22:06:29.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":0.0,"cvss_vector":null,"references":["https://github.com/Gilnaa/memoffset/issues/24","https://github.com/Gilnaa/memoffset/pull/50","https://rustsec.org/advisories/RUSTSEC-2023-0045.html","https://github.com/advisories/GHSA-wfg4-322g-9vqv"],"source_kind":"github","identifiers":["GHSA-wfg4-322g-9vqv"],"repository_url":"https://github.com/Gilnaa/memoffset","blast_radius":0.0,"created_at":"2023-06-21T23:03:28.356Z","updated_at":"2026-04-05T20:08:43.108Z","epss_percentage":null,"epss_percentile":null,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS13Zmc0LTMyMmctOXZxds4AAz-b","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS13Zmc0LTMyMmctOXZxds4AAz-b","packages":[{"ecosystem":"cargo","package_name":"memoffset","versions":[{"first_patched_version":"0.6.2","vulnerable_version_range":"\u003c 0.6.2"}],"purl":"pkg:cargo/memoffset"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS13Zmc0LTMyMmctOXZxds4AAz-b/related_packages","related_advisories":[]},{"uuid":"MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXJoODkteDc1Zi1yaDNj","url":"https://github.com/advisories/GHSA-rh89-x75f-rh3c","title":"Exposure of uninitialized memory in memoffset","description":"Affected versions of this crate caused traps and/or memory unsafety by zero-initializing references. They also could lead to uninitialized memory being dropped if the field for which the offset is requested was behind a deref coercion, and that deref coercion caused a panic. The flaw was corrected by using MaybeUninit.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2021-08-25T20:44:00.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.5,"cvss_vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","references":["https://nvd.nist.gov/vuln/detail/CVE-2019-15553","https://github.com/Gilnaa/memoffset/issues/9#issuecomment-505461490","https://rustsec.org/advisories/RUSTSEC-2019-0011.html","https://github.com/advisories/GHSA-rh89-x75f-rh3c"],"source_kind":"github","identifiers":["GHSA-rh89-x75f-rh3c","CVE-2019-15553"],"repository_url":"https://github.com/Gilnaa/memoffset","blast_radius":0.0,"created_at":"2022-12-21T16:12:53.503Z","updated_at":"2026-05-04T17:10:39.363Z","epss_percentage":0.00285,"epss_percentile":0.51516,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXJoODkteDc1Zi1yaDNj","html_url":"https://advisories.ecosyste.ms/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXJoODkteDc1Zi1yaDNj","packages":[{"ecosystem":"cargo","package_name":"memoffset","versions":[{"first_patched_version":"0.5.0","vulnerable_version_range":"\u003c 0.5.0"}],"purl":"pkg:cargo/memoffset"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXJoODkteDc1Zi1yaDNj/related_packages","related_advisories":[]}],"docker_usage_url":"https://docker.ecosyste.ms/usage/cargo/memoffset","docker_dependents_count":1020,"docker_downloads_count":835105232,"usage_url":"https://repos.ecosyste.ms/usage/cargo/memoffset","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/cargo/memoffset/dependencies","status":null,"funding_links":[],"critical":true,"issue_metadata":{"last_synced_at":"2026-03-01T01:14:50.671Z","issues_count":26,"pull_requests_count":57,"avg_time_to_close_issue":22705564.958333332,"avg_time_to_close_pull_request":826856.9298245613,"issues_closed_count":24,"pull_requests_closed_count":57,"pull_request_authors_count":19,"issue_authors_count":17,"avg_comments_per_issue":6.1923076923076925,"avg_comments_per_pull_request":3.1578947368421053,"merged_pull_requests_count":55,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gilnaa%2Fmemoffset/issues","maintainers":[{"login":"RalfJung","count":30,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/RalfJung"},{"login":"Gilnaa","count":13,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/Gilnaa"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/memoffset/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/memoffset/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/memoffset/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/memoffset/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/memoffset/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/memoffset/codemeta","maintainers":[{"uuid":"56986","login":"RalfJung","name":"Ralf Jung","email":null,"url":"https://github.com/RalfJung","packages_count":11,"html_url":"https://crates.io/users/RalfJung","role":null,"created_at":"2022-11-07T21:52:15.099Z","updated_at":"2022-11-07T21:52:15.099Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/maintainers/RalfJung/packages"},{"uuid":"10122","login":"Gilnaa","name":"Gilad Naaman","email":null,"url":"https://github.com/Gilnaa","packages_count":4,"html_url":"https://crates.io/users/Gilnaa","role":null,"created_at":"2022-11-07T21:52:15.091Z","updated_at":"2022-11-07T21:52:15.091Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/maintainers/Gilnaa/packages"}]}