Skip to content

Commit 7855ffa

Browse files
committed
Assign RUSTSEC-2018-0003 to smallvec
Original PR: #30
1 parent 569e6ad commit 7855ffa

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Advisories.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,27 @@ The error in untrusted is fixed in release 0.6.2 released 2018-06-21. It's also
111111
advisable that users of untrusted check for their sources for cases where errors
112112
returned by untrusted are not handled correctly.
113113
"""
114+
115+
[[advisory]]
116+
id = "RUSTSEC-2018-0002"
117+
package = "smallvec"
118+
unaffected_versions = ["< 0.3.2"]
119+
patched_versions = [">= 0.6.3"]
120+
dwf = []
121+
url = "https://github.com/servo/rust-smallvec/issues/96"
122+
title = "Possible double free during unwinding in SmallVec::insert_many"
123+
date = "2018-07-19"
124+
description = """
125+
If an iterator passed to `SmallVec::insert_many` panicked in `Iterator::next`,
126+
destructors were run during unwinding while the vector was in an inconsistent
127+
state, possibly causing a double free (a destructor running on two copies of
128+
the same value).
129+
130+
This is fixed in smallvec 0.6.3 by ensuring that the vector's length is not
131+
updated to include moved items until they have been removed from their
132+
original positions. Items may now be leaked if `Iterator::next` panics, but
133+
they will not be dropped more than once.
134+
135+
Thank you to @Vurich for reporting this bug.
136+
"""
137+

0 commit comments

Comments
 (0)