Skip to content

Commit

Permalink
Merge pull request #872 from JOE1994/0163-algorithmica
Browse files Browse the repository at this point in the history
algorithmica: 'merge_sort::merge()' crashes with double-free for `T: Drop`
  • Loading branch information
Shnatsel authored Apr 15, 2021
2 parents 22b59ea + 4b7ea77 commit c9b5bbd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions crates/algorithmica/RUSTSEC-0000-0000.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "algorithmica"
date = "2021-03-07"
url = "https://github.com/AbrarNitk/algorithmica/issues/1"
categories = ["memory-corruption"]

[versions]
patched = []
```

# 'merge_sort::merge()' crashes with double-free for `T: Drop`

In the affected versions of this crate, `merge_sort::merge()` wildly duplicates and drops ownership of `T` without guarding against double-free. Due to such implementation,
simply invoking `merge_sort::merge()` on `Vec<T: Drop>` can cause **double free** bugs.

0 comments on commit c9b5bbd

Please # to comment.