{"id":3530955,"name":"array-macro","ecosystem":"cargo","description":"Array multiple elements constructor syntax","homepage":null,"licenses":"MIT OR Apache-2.0","normalized_licenses":["MIT","Apache-2.0"],"repository_url":"https://codeberg.org/xfix/array-macro","keywords_array":["array","no_std","data-structure"],"namespace":null,"versions_count":19,"first_release_published_at":"2017-08-01T21:16:44.208Z","latest_release_published_at":"2023-11-08T14:56:38.096Z","latest_release_number":"2.1.8","last_synced_at":"2026-06-26T10:24:26.268Z","created_at":"2022-04-10T23:22:20.574Z","updated_at":"2026-06-26T15:08:24.404Z","registry_url":"https://crates.io/crates/array-macro/","install_command":"cargo install array-macro","documentation_url":"https://docs.rs/array-macro/","metadata":{"categories":["data-structures","no-std"]},"repo_metadata":{"id":206223264,"uuid":"143471","full_name":"xfix/array-macro","owner":"xfix","description":"Array macro not requiring a copy","archived":false,"fork":false,"pushed_at":null,"size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":null,"default_branch":"master","last_synced_at":"2023-11-08T15:10:05.065Z","etag":null,"topics":["woodpecker-ci"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":true,"has_pages":null,"mirror_url":"f","source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://codeberg.org/avatars/46e265f75686faf2c54092a348bda95c339fd0b8f88091795457cece325ea33e","metadata":{},"created_at":"2023-09-13T15:09:03.000Z","updated_at":"2023-11-08T15:01:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"42a7c5c0-378c-484d-9a2d-4b0ea400eb02","html_url":"https://codeberg.org/xfix/array-macro","commit_stats":null,"previous_names":["xfix/array-macro"],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:forgejo/xfix/array-macro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/repositories/xfix%2Farray-macro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/repositories/xfix%2Farray-macro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/repositories/xfix%2Farray-macro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/repositories/xfix%2Farray-macro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/owners/xfix","download_url":"https://codeberg.org/xfix/array-macro/archive/master.zip","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/repositories/xfix%2Farray-macro/sbom","scorecard":null,"host":{"name":"codeberg.org","url":"https://codeberg.org","kind":"forgejo","repositories_count":34683,"owners_count":722,"icon_url":"https://github.com/Codeberg-org.png","version":null,"created_at":"2022-08-01T13:30:46.733Z","updated_at":"2026-03-05T09:27:01.433Z","status":"http_error","status_checked_at":"2026-06-12T02:00:08.211Z","response_time":47,"last_error":"HTTP 429: Too Many Requests","robots_txt_status":"error_403","robots_txt_updated_at":"2025-07-24T06:49:27.136Z","robots_txt_url":"https://codeberg.org/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/owners"},"owner_record":{"login":"xfix","name":"Konrad Borowski","uuid":"118439","kind":"user","description":"","email":"konrad@borowski.pw","website":"https://fosstodon.org/@xfix","location":"","twitter":null,"company":null,"icon_url":"https://codeberg.org/avatars/46e265f75686faf2c54092a348bda95c339fd0b8f88091795457cece325ea33e","repositories_count":1,"last_synced_at":"2023-09-10T16:13:40.615Z","metadata":{},"html_url":"https://codeberg.org/xfix","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2023-09-10T16:13:40.664Z","updated_at":"2023-09-10T16:13:40.664Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/owners/xfix","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/codeberg.org/owners/xfix/repositories"},"tags":[]},"repo_metadata_updated_at":"2026-06-26T15:08:24.384Z","dependent_packages_count":25,"downloads":8321562,"downloads_period":"total","dependent_repos_count":232,"rankings":{"downloads":1.2505222945144154,"dependent_repos_count":2.662955888497583,"dependent_packages_count":1.6362741001611651,"stargazers_count":55.98796583850931,"forks_count":40.554825609173434,"docker_downloads_count":5.924598730869728,"average":18.002857076954275},"purl":"pkg:cargo/array-macro","advisories":[{"uuid":"GSA_kwCzR0hTQS03djRqLTh3dnItdjU1cs4AArqy","url":"https://github.com/advisories/GHSA-7v4j-8wvr-v55r","title":"`array!` macro is unsound when its length is impure constant","description":"Affected versions of this crate did substitute the array length provided by an user at compile-time multiple times.\n\nWhen an impure constant expression is passed as an array length (such as a result of an impure procedural macro), this can result in the initialization of an array with uninitialized types, which in turn can allow an attacker to execute arbitrary code.\n\nThe flaw was corrected in commit [d5b63f72](https://github.com/xfix/array-macro/commit/d5b63f72090f3809c21ac28f9cfd84f12559bf7d) by making sure that array length is substituted just once.\n","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2022-06-16T23:40:38.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":0.0,"cvss_vector":null,"references":["https://github.com/rustsec/advisory-db/blob/main/crates/array-macro/RUSTSEC-2022-0017.md","https://gitlab.com/KonradBorowski/array-macro/-/issues/5","https://rustsec.org/advisories/RUSTSEC-2022-0017.html","https://github.com/xfix/array-macro/commit/d5b63f72090f3809c21ac28f9cfd84f12559bf7d","https://github.com/advisories/GHSA-7v4j-8wvr-v55r"],"source_kind":"github","identifiers":["GHSA-7v4j-8wvr-v55r"],"repository_url":"https://gitlab.com/KonradBorowski/array-macro","blast_radius":0.0,"created_at":"2022-12-21T16:12:01.244Z","updated_at":"2026-04-28T20:09:11.238Z","epss_percentage":null,"epss_percentile":null,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS03djRqLTh3dnItdjU1cs4AArqy","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS03djRqLTh3dnItdjU1cs4AArqy","packages":[{"ecosystem":"cargo","package_name":"array-macro","versions":[{"first_patched_version":"2.1.2","vulnerable_version_range":"\u003e= 2.1.0, \u003c 2.1.2"}],"purl":"pkg:cargo/array-macro"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS03djRqLTh3dnItdjU1cs4AArqy/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS04M2dnLXB3eGYtanI4Oc4AArqx","url":"https://github.com/advisories/GHSA-83gg-pwxf-jr89","title":"`array!` macro is unsound in presence of traits that implement methods it calls internally","description":"Affected versions of this crate called some methods using auto-ref. The affected code looked like this.\n\n```rust\nlet mut arr = $crate::__core::mem::MaybeUninit::uninit();\nlet mut vec = $crate::__ArrayVec::\u003cT\u003e::new(arr.as_mut_ptr() as *mut T);\n```\n\nIn this case, the problem is that `as_mut_ptr` is a method of `\u0026mut MaybeUninit`, not `MaybeUninit`. This made it possible for traits to hijack the method calls in order to cause unsoundness.\n\n```rust\ntrait AsMutPtr\u003cT\u003e {\n    fn as_mut_ptr(\u0026self) -\u003e *mut T;\n}\nimpl\u003cT\u003e AsMutPtr\u003cT\u003e for std::mem::MaybeUninit\u003cT\u003e {\n    fn as_mut_ptr(\u0026self) -\u003e *mut T {\n        std::ptr::null_mut()\n    }\n}\narray![0; 1];\n```\n\nThe flaw was corrected by explicitly referencing variables in macro body in order to avoid auto-ref.\n","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2022-06-16T23:40:19.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":0.0,"cvss_vector":null,"references":["https://github.com/rustsec/advisory-db/blob/main/crates/array-macro/RUSTSEC-2020-0161.md","https://rustsec.org/advisories/RUSTSEC-2020-0161.html","https://github.com/xfix/array-macro/commit/01940637dd8f3bfeeee3faf9639fa9ae52f19f4d","https://gitlab.com/KonradBorowski/array-macro/-/commit/01940637dd8f3bfeeee3faf9639fa9ae52f19f4d","https://github.com/advisories/GHSA-83gg-pwxf-jr89"],"source_kind":"github","identifiers":["GHSA-83gg-pwxf-jr89"],"repository_url":"https://github.com/xfix/array-macro","blast_radius":0.0,"created_at":"2022-12-21T16:12:18.339Z","updated_at":"2026-04-28T20:09:27.482Z","epss_percentage":null,"epss_percentile":null,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04M2dnLXB3eGYtanI4Oc4AArqx","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS04M2dnLXB3eGYtanI4Oc4AArqx","packages":[{"ecosystem":"cargo","package_name":"array-macro","versions":[{"first_patched_version":"1.0.5","vulnerable_version_range":"\u003e= 0.1.2, \u003c 1.0.5"}],"purl":"pkg:cargo/array-macro"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04M2dnLXB3eGYtanI4Oc4AArqx/related_packages","related_advisories":[]}],"docker_usage_url":"https://docker.ecosyste.ms/usage/cargo/array-macro","docker_dependents_count":6,"docker_downloads_count":4586082,"usage_url":"https://repos.ecosyste.ms/usage/cargo/array-macro","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/cargo/array-macro/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-09-16T03:34:46.572Z","issues_count":0,"pull_requests_count":6,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":13303.166666666668,"issues_closed_count":0,"pull_requests_closed_count":6,"pull_request_authors_count":3,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":0.3333333333333333,"merged_pull_requests_count":5,"bot_issues_count":0,"bot_pull_requests_count":2,"past_year_issues_count":0,"past_year_pull_requests_count":4,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":9546.75,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":4,"past_year_pull_request_authors_count":2,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":0.25,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":2,"past_year_merged_pull_requests_count":3},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/array-macro/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/array-macro/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/array-macro/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/array-macro/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/array-macro/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/array-macro/codemeta","maintainers":[{"uuid":"6677","login":"sugar700","name":"Kamila Borowska","email":null,"url":"https://github.com/sugar700","packages_count":16,"html_url":"https://crates.io/users/sugar700","role":null,"created_at":"2022-11-07T16:45:31.451Z","updated_at":"2022-11-07T16:45:31.451Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/maintainers/sugar700/packages"}]}