Lucene search

K
osvGoogleOSV:RUSTSEC-2021-0047
HistoryFeb 19, 2021 - 12:00 p.m.

SliceDeque::drain_filter can double drop an element if the predicate panics

2021-02-1912:00:00
Google
osv.dev
5

0.001 Low

EPSS

Percentile

46.5%

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.

0.001 Low

EPSS

Percentile

46.5%

Related for OSV:RUSTSEC-2021-0047