Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

猬嗭笍馃敀 Bump http from 0.1.15 to 0.1.21 #172

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps http from 0.1.15 to 0.1.21. This update includes security fixes.

Vulnerabilities fixed

Sourced from The RustSec Advisory Database.

HeaderMap::Drain API is unsound 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.

Patched versions: >= 0.1.20 Unaffected versions: none

Sourced from The RustSec Advisory Database.

Integer Overflow in HeaderMap::reserve() can cause Denial of Service HeaderMap::reserve() used usize::next_power_of_two() to calculate the increased capacity. However, next_power_of_two() silently overflows to 0 if given a sufficently large number in release mode.

If the map was not empty when the overflow happens, the library will invoke self.grow(0) and start infinite probing. This allows an attacker who controls the argument to reserve() to cause a potential denial of service (DoS).

The flaw was corrected in 0.1.20 release of http crate.

Patched versions: >= 0.1.20 Unaffected versions: none

Changelog

Sourced from http's changelog.

0.1.21 (December 2, 2019)

  • Fix Method::is_idempotent returning false for PUT and `DELETE.

0.1.20 (November 26, 2019)

  • Fix possible double-free if header::Drain iterator is std::mem::forgoten (#357).
  • Fix possible data race if multiple header::ValueDrains are iterated on different threads (#362).
  • Fix HeaderMap::reserve capacity overflows (#360).
  • Fix parsing long authority-form Uris (#351).

0.1.19 (October 15, 2019)

  • Allow % in IPv6 addresses in Uri (#343).

0.1.18 (July 26, 2019)

  • Fix compilation of HeaderName parsing on WASM targets (#324).
  • Implement HttpTryFrom<HashMap> for HeaderMap (#326).
  • Export http::header::HeaderValue as http::HeaderValue.

0.1.17 (April 5, 2019)

  • Add Error::inner_ref() to view the kind of error (#303)
  • Add headers_ref() and headers_mut() methods to request::Builder and response::Builder (#293)

0.1.16 (February 19, 2019)

  • Fix Uri to permit more characters in the path (#296)
Commits
  • 6443bdb v0.1.21
  • 0cbcc1e Fix Method::is_idempotent
  • 4a5b64d v0.1.20
  • 6b07ee4 Refactor Method::is_idempotent for readability (#348)
  • 6856193 Fix docs indentation (#347)
  • d3cae7c Fix parsing of long host with no scheme (#351)
  • 8ffe094 Make ValueDrain eagerly collect its extra values
  • 81ceb61 fix capacity overflows in HeaderMap::reserve
  • 32f1ae1 Remove unused 'inner label
  • 82d53db Fix HeaderMap::drain double-free if drain iterator is forgotten
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [http](https://github.com/hyperium/http) from 0.1.15 to 0.1.21. **This update includes security fixes.**
- [Release notes](https://github.com/hyperium/http/releases)
- [Changelog](https://github.com/hyperium/http/blob/v0.1.21/CHANGELOG.md)
- [Commits](hyperium/http@v0.1.15...v0.1.21)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added dependencies security Pull requests that address a security vulnerability labels Jan 9, 2020
@mergify mergify bot merged commit a50932e into master Jan 9, 2020
@dependabot-preview dependabot-preview bot deleted the dependabot/cargo/http-0.1.21 branch January 9, 2020 20:40
@coveralls
Copy link

coveralls commented Jan 9, 2020

Pull Request Test Coverage Report for Build 773

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.0%

Totals Coverage Status
Change from base Build 769: 0.0%
Covered Lines: 0
Relevant Lines: 387

馃挍 - Coveralls

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant