RustSec Advisory Database
RUSTSEC-2021-0047
SliceDeque::drain_filter can double drop an element if the predicate panics
Details
Affected versions of the crate incremented the current index of the drain filter iterator *before* calling the predicate function self.pred.
If the predicate function panics, it is possible for the last element in the iterator to be dropped twice.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | slice-deque | From 0.0.0-0, no fix listed |