Skip to content

Commit e3df454

Browse files
Add unsound advisory for mimalloc (#2098)
1 parent 6dbff23 commit e3df454

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "mimalloc"
5+
date = "2022-11-23"
6+
url = "https://github.com/purpleprotocol/mimalloc_rust/issues/87"
7+
informational = "unsound"
8+
9+
[versions]
10+
patched = [">= 0.1.39"]
11+
```
12+
13+
# Mimalloc Can Allocate Memory with Bad Alignment
14+
This crate depended on a promise regarding alignments made by the author of the mimalloc allocator to avoid using aligned allocation functions where possible for performance reasons.
15+
Since then, the mimalloc allocator's logic changed, making it break this promise.
16+
This caused this crate to return memory with an incorrect alignment for some allocations, particularly those with large alignments.
17+
The flaw was fixed by always using the aligned allocation functions.

0 commit comments

Comments
 (0)