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
vulnerability
slicedeque
drain_filter
predicate function
iterator
panics
software

EPSS

0.001

Percentile

46.4%

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.

EPSS

0.001

Percentile

46.4%

Related for OSV:RUSTSEC-2021-0047