Skip to content
OpenAdvisories

Package · crates.io

array-macro

2 known vulnerabilities.

2 results · Clear filters · Feed

  • Medium —

    `array!` macro is unsound when its length is impure constant

    Affected versions of this crate did substitute the array length provided by an user at compile-time multiple times. When an impure constant expression is passed as an array length (such as a result of an impure procedural macro), this can result in the initia…

  • Medium —

    `array!` macro is unsound in presence of traits that implement methods it calls internally

    Affected versions of this crate called some methods using auto-ref. The affected code looked like this. ```rust let mut arr = $crate::__core::mem::MaybeUninit::uninit(); let mut vec = $crate::__ArrayVec::<T>::new(arr.as_mut_ptr() as *mut T); ``` In this case,…