Lucene search

K
osvGoogleOSV:RUSTSEC-2021-0115
HistorySep 24, 2021 - 12:00 p.m.

`#[zeroize(drop)]` doesn't implement `Drop` for `enum`s

2021-09-2412:00:00
Google
osv.dev
5
zeroize attribute
memory zeroing
enum
software flaw

EPSS

0.002

Percentile

62.1%

Affected versions of this crate did not implement Drop when #[zeroize(drop)] was used on an enum.

This can result in memory not being zeroed out after dropping it, which is exactly what is intended when adding this attribute.

The flaw was corrected in version 1.2 and #[zeroize(drop)] on enums now properly implements Drop.

EPSS

0.002

Percentile

62.1%

Related for OSV:RUSTSEC-2021-0115