{"id":10258232,"name":"direct_ring_buffer","ecosystem":"cargo","description":"A high-performance, lock-free ring buffer for single-producer, single-consumer scenarios.","homepage":"https://github.com/ain1084/direct_ring_buffer","licenses":"MIT OR Apache-2.0","normalized_licenses":["MIT","Apache-2.0"],"repository_url":"https://github.com/ain1084/direct_ring_buffer","keywords_array":["lock-free","ring-buffer","spsc"],"namespace":null,"versions_count":5,"first_release_published_at":"2024-05-30T01:23:45.810Z","latest_release_published_at":"2025-10-19T18:19:46.792Z","latest_release_number":"0.2.2","last_synced_at":"2026-10-06T09:15:34.427Z","created_at":"2024-05-30T01:32:35.628Z","updated_at":"2026-10-06T09:15:34.427Z","registry_url":"https://crates.io/crates/direct_ring_buffer/","install_command":"cargo install direct_ring_buffer","documentation_url":"https://docs.rs/direct_ring_buffer/","metadata":{"categories":["concurrency","data-structures"]},"repo_metadata":{},"repo_metadata_updated_at":"2026-10-02T09:10:50.508Z","dependent_packages_count":0,"downloads":7024,"downloads_period":"total","dependent_repos_count":0,"rankings":{"downloads":96.4421088904204,"dependent_repos_count":27.312909617436365,"dependent_packages_count":36.22393192978271,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":53.32631681254649},"purl":"pkg:cargo/direct_ring_buffer","advisories":[{"uuid":"GSA_kwCzR0hTQS1mcDV4LTdtNHEtNDQ5Zs4ABNoC","url":"https://github.com/advisories/GHSA-fp5x-7m4q-449f","title":"Direct Ring Buffer has uninitialized memory exposure in create_ring_buffer","description":"The safe function `create_ring_buffer` allocates a buffer using `Vec::with_capacity` followed by `set_len`, creating a `Box\u003c[T]\u003e` containing uninitialized memory.\n\nThis leads to undefined behavior when functions like `write_slices` create typed slices (e.g., `\u0026mut [bool]`) over the uninitialized memory, violating Rust's validity invariants. The issue has been confirmed using Miri.\n\nFixed in version 0.2.2 by using `resize_with` to properly initialize the buffer with `T::default()`, adding a `T: Default` bound to ensure sound initialization.","origin":"UNSPECIFIED","severity":"LOW","published_at":"2025-10-21T21:57:31.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":2.0,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P","references":["https://github.com/ain1084/direct_ring_buffer/issues/1","https://github.com/ain1084/direct_ring_buffer/pull/2","https://rustsec.org/advisories/RUSTSEC-2025-0105.html","https://github.com/advisories/GHSA-fp5x-7m4q-449f"],"source_kind":"github","identifiers":["GHSA-fp5x-7m4q-449f"],"repository_url":"https://github.com/ain1084/direct_ring_buffer","blast_radius":1.0,"created_at":"2025-10-21T22:00:07.673Z","updated_at":"2026-04-05T20:02:02.494Z","epss_percentage":null,"epss_percentile":null,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mcDV4LTdtNHEtNDQ5Zs4ABNoC","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1mcDV4LTdtNHEtNDQ5Zs4ABNoC","packages":[{"ecosystem":"cargo","package_name":"direct_ring_buffer","versions":[{"first_patched_version":"0.2.2","vulnerable_version_range":"\u003c 0.2.2"}],"purl":"pkg:cargo/direct_ring_buffer"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mcDV4LTdtNHEtNDQ5Zs4ABNoC/related_packages","related_advisories":[]}],"docker_usage_url":"https://docker.ecosyste.ms/usage/cargo/direct_ring_buffer","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/cargo/direct_ring_buffer","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/cargo/direct_ring_buffer/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/direct_ring_buffer/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/direct_ring_buffer/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/direct_ring_buffer/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/direct_ring_buffer/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/direct_ring_buffer/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/direct_ring_buffer/codemeta","maintainers":[{"uuid":"272974","login":"ain1084","name":"Seiji Ainoguchi","email":null,"url":"https://github.com/ain1084","packages_count":4,"html_url":"https://crates.io/users/ain1084","role":null,"created_at":"2024-05-30T01:32:38.782Z","updated_at":"2024-05-30T01:32:38.782Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/maintainers/ain1084/packages"}]}