Skip to content

Commit fca3269

Browse files
authored
add smallvec unsoundness (#337)
1 parent 9ad6be8 commit fca3269

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[advisory]
2+
id = "RUSTSEC-0000-0000"
3+
package = "smallvec"
4+
date = "2018-09-25"
5+
informational = "unsound"
6+
7+
title = "smallvec creates uninitialized value of any type"
8+
url = "https://github.com/servo/rust-smallvec/issues/126"
9+
10+
description = """
11+
Affected versions of this crate called `mem::uninitialized()` to create values of a user-supplied type `T`.
12+
This is unsound e.g. if `T` is a reference type (which must be non-null and thus may not remain uninitialized).
13+
14+
The flaw was corrected by avoiding the use of `mem::uninitialized()`, using `MaybeUninit` instead.
15+
"""
16+
17+
[versions]
18+
patched = [">= 0.6.13"]

0 commit comments

Comments
 (0)