Double free in algorithmica
High severity
GitHub Reviewed
Published
Aug 25, 2021
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Reviewed
May 25, 2021
Published to the GitHub Advisory Database
Aug 25, 2021
Last updated
Jan 9, 2023
An issue was discovered in the algorithmica crate through 2021-03-07 for Rust. In the affected versions of this crate,
merge_sort::merge()
wildly duplicates and drops ownership ofT
without guarding against double-free. Due to such implementation, simply invokingmerge_sort::merge()
onVec<T: Drop>
can cause double free bugs.References