RUSTSEC-2021-0047: slice-deque: SliceDeque::drain_filter can double drop an element if the predicate panics

Description

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.

More Info

https://github.com/gnzlbg/slice_deque/issues/90

Patched Versions