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.
buf_redux 0.8.4
This project contains known security vulnerabilities. Find detailed information at the bottom.
buf_redux
(3 total, 1 outdated, 1 insecure)
Crate | Required | Latest | Status |
---|---|---|---|
memchr | ^2.0 | 2.7.4 | up to date |
safemem | ^0.3 | 0.3.3 | up to date |
slice-deque ⚠️ | ^0.2 | 0.3.0 | insecure |
slice-deque
: SliceDeque::drain_filter can double drop an element if the predicate panicsAffected 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.