forked from rustsec/advisory-db
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request rustsec#220 from RustSec/RUSTSEC-2019-0034
Assign RUSTSEC-2019-0034 to http
- Loading branch information
Showing
2 changed files
with
20 additions
and
78 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[advisory] | ||
id = "RUSTSEC-2019-0034" | ||
package = "http" | ||
date = "2019-11-16" | ||
title = "HeaderMap::Drain API is unsound" | ||
description = """ | ||
Affected versions of this crate incorrectly used raw pointer, | ||
which introduced unsoundness in its public safe API. | ||
[Failing to drop the Drain struct causes double-free](https://github.com/hyperium/http/issues/354), | ||
and [it is possible to violate Rust's alias rule and cause data race with Drain's Iterator implementation](https://github.com/hyperium/http/issues/355). | ||
The flaw was corrected in 0.2.0 release of `http` crate. | ||
""" | ||
patched_versions = [">= 0.2.0"] | ||
categories = ["memory-corruption"] | ||
keywords = ["memory-safety", "double-free", "unsound"] | ||
|
||
[affected.functions] | ||
"http::header::HeaderMap::drain" = ["< 0.2.0"] |