Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] Bump http from 0.1.18 to 0.2.0 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Dec 3, 2019

Bumps http from 0.1.18 to 0.2.0.

Release notes

Sourced from http's releases.

v0.2.0

  • Add Version::HTTP_3 constant.
  • Add HeaderValue::from_maybe_shared, HeaderValue::from_maybe_shared_unchecked, Uri::from_maybe_shared, Authority::from_maybe_shared, and PathAndQuery::from_maybe_shared.
  • Change request::Builder, response::Builder, and uri::Builder to use by-value methods instead of by-ref.
  • Change from HttpTryFrom trait to std::convert::TryFrom.
  • Change HeaderMap::entry to no longer return a Result.
  • Change HeaderMap::drain iterator to match the behavior of IntoIter.
  • Change Authority::port to return an Option<Port> instead of Option<u16>.
  • Change Uri::scheme to return Option<&Scheme> instead of Option<&str>.
  • Change Uri::authority to return Option<&Authority> instead of Option<&str>.
  • Remove InvalidUriBytes, InvalidHeaderNameBytes, and InvalidHeaderValueBytes error types.
  • Remove HeaderValue::from_shared, HeaderValue::from_shared_unchecked, Uri::from_shared, Authority::from_shared, Scheme::from_shared, and PathAndQuery::from_shared.
  • Remove Authority::port_part.
  • Remove Uri::scheme_part and Uri::authority_part.
Changelog

Sourced from http's changelog.

0.2.0 (December 2, 2019)

  • Add Version::HTTP_3 constant.
  • Add HeaderValue::from_maybe_shared, HeaderValue::from_maybe_shared_unchecked, Uri::from_maybe_shared, Authority::from_maybe_shared, and PathAndQuery::from_maybe_shared.
  • Change request::Builder, response::Builder, and uri::Builder to use by-value methods instead of by-ref.
  • Change from HttpTryFrom trait to std::convert::TryFrom.
  • Change HeaderMap::entry to no longer return a Result.
  • Change HeaderMap::drain iterator to match the behavior of IntoIter.
  • Change Authority::port to return an Option<Port> instead of Option<u16>.
  • Change Uri::scheme to return Option<&Scheme> instead of Option<&str>.
  • Change Uri::authority to return Option<&Authority> instead of Option<&str>.
  • Remove InvalidUriBytes, InvalidHeaderNameBytes, and InvalidHeaderValueBytes error types.
  • Remove HeaderValue::from_shared, HeaderValue::from_shared_unchecked, Uri::from_shared, Authority::from_shared, Scheme::from_shared, and PathAndQuery::from_shared.
  • Remove Authority::port_part.
  • Remove Uri::scheme_part and Uri::authority_part.

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).
Commits
  • 76ad0e3 v0.2.0
  • cb67c17 Add from_maybe_shared constructors
  • db9b1b9 remove error type variants suffixed with Bytes
  • 4ce5e6a Make all usage of Bytes private
  • 0591bba Fix Method::is_idempotent
  • c89cfc9 Change HeaderMap::drain API to match into_iter instead
  • 6c2b789 Revert "Make ValueDrain eagerly collect its extra values"
  • 43dffa1 Upgrade to bytes 0.5
  • 22448cd Switch HttpTryFrom to TryFrom.
  • 9d8058a update rand and quickcheck dev deps with usage changes
  • 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)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Dec 3, 2019
@dependabot-preview
Copy link
Contributor Author

We've just been alerted that this update fixes a security vulnerability:

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.2.0 release of http crate.

Patched versions: [">= 0.2.0"]

@dependabot-preview dependabot-preview bot changed the title Bump http from 0.1.18 to 0.2.0 [Security] Bump http from 0.1.18 to 0.2.0 Jan 9, 2020
@dependabot-preview dependabot-preview bot added the security Pull requests that address a security vulnerability label Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants