Skip to content

GHSA-67r5-rqwv-9p9q array-init-cursor is unsound when used with types that implement `Drop`

LowCVSS 2.9
Published
Updated
Exploit status
No public exploit known

Description

The Drop implementation will get run twice when using the cursor.

This issue does not affect you, if you are using only using the crate with types that are Copy such as u8.

This issue also does not affect you, if you are only depending on it through the crate planus.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io array-init-cursor(crates.io) < 0.2.1; >= 0.0.0-0, < 0.2.1 0.2.1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io array-init-cursor(crates.io) < 0.2.1 0.2.1
crates.io array-init-cursor(crates.io) >= 0.0.0-0, < 0.2.1 0.2.1

References