CVE-2021-28031: move_elements can double-free objects on panic

Severity: Critical

CVSS Score: 9.8

An issue was discovered in the scratchpad crate before 1.3.1 for Rust. The move_elements function can have a double-free upon a panic in a user-provided f function.