Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

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

Open
github-actions bot opened this issue Apr 4, 2021 · 0 comments

Comments

@github-actions
Copy link

github-actions bot commented Apr 4, 2021

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants