Skip to content
This repository has been archived by the owner on Nov 21, 2021. It is now read-only.

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

Closed
github-actions bot opened this issue Mar 31, 2021 · 1 comment

Comments

@github-actions
Copy link

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

Details
Package slice-deque
Version 0.3.0
URL gnzlbg/slice_deque#90
Date 2021-02-19

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.

See advisory page for additional details.

@jdno
Copy link
Contributor

jdno commented Jun 23, 2021

slice-deque is a downstream dependency of bevy, so there's nothing we can do here to resolve this.

@jdno jdno closed this as completed Jun 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant