Skip to content
OpenAdvisories

Package · crates.io

enum-map

2 known vulnerabilities.

1 result · Clear filters · Feed

  • High —

    enum_map macro can cause UB when `Enum` trait is incorrectly implemented

    Affected versions of this crate did not properly check the length of an enum when using `enum_map!` macro, trusting user-provided length. When the `LENGTH` in the `Enum` trait does not match the array length in the `EnumArray` trait, this can result in the in…