Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
github-actions bot opened this issue Apr 15, 2022 · 0 comments

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant