PT-2026-66823
تاريخ النشر
2026-07-21
·
تاريخ التحديث
2026-07-21
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
Affected versions of this crate did not require the element type of the
Array associated type in the Enum trait to match the array's generic parameter V.This can result in type confusion, and consequently memory corruption, when a manual
Enum implementation declares an Array<V> whose elements are not actually of type V:rust
struct IntentionallyWrong;
impl Enum for IntentionallyWrong {
type Array<V> = [String; 4];
fn from usize( : usize) -> Self {
IntentionallyWrong
}
fn into usize(self) -> usize {
0
}
}
enum map! { IntentionallyWrong => 42 };The flaw was corrected in commit 7a8b815432 by adding a
Value = V bound to the Array type in the Enum trait.المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾