ADVISORIES

RustSec Advisory Database

RUSTSEC-2019-0034

HeaderMap::Drain API is unsound

Details

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, and it is possible to violate Rust's alias rule and cause data race with Drain's Iterator implementation.

The flaw was corrected in 0.1.20 release of http crate.

Affected packages

EcosystemPackageAffected versions
crates.iohttp
From 0.0.0-0 before 0.1.20 (fixed in 0.1.20)

References