2 matches found
WS-2022-0085
Versions before 2.0.2 of the crate 'enum-map' did not properly check the length of an enum when using enummap! macro, trusting user-provided length. Fixed in version 2.0.2. When the LENGTH in the Enum trait does not match the array length in the EnumArray trait, this can result in the...
9.2CVSS6.5AI score
SaveExploits0References4
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 enummap! 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 initialization of the enum map with uninitialized...
0.9AI score
SaveExploits0References6Affected Software1
20