Skip to content

Commit

Permalink
Assign RUSTSEC-2019-0034 to http
Browse files Browse the repository at this point in the history
Original PR: rustsec#218
  • Loading branch information
tarcieri committed Jan 9, 2020
1 parent 2aad27e commit 526892a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 78 deletions.
78 changes: 0 additions & 78 deletions crates/http/RUSTSEC-0000-0000.toml

This file was deleted.

20 changes: 20 additions & 0 deletions crates/http/RUSTSEC-2019-0034.toml
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"]

0 comments on commit 526892a

Please sign in to comment.