PT-2025-46130

تاريخ النشر

2025-10-21

·

تاريخ التحديث

2025-10-21

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

The safe function create ring buffer allocates a buffer using Vec::with capacity followed by set len, creating a Box<[T]> containing uninitialized memory.
This leads to undefined behavior when functions like write slices create typed slices (e.g., &mut [bool]) over the uninitialized memory, violating Rust's validity invariants. The issue has been confirmed using Miri.
Fixed 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.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
RUSTSEC-2025-0105
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾