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] build(deps): bump http from 0.1.20 to 0.2.0 #180

Closed
wants to merge 1 commit into from

Conversation

dependabot-preview[bot]
Copy link
Contributor

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

Bumps http from 0.1.20 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.
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)
  • 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)

@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 build(deps): bump http from 0.1.20 to 0.2.0 [security] build(deps): bump http from 0.1.20 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
@dependabot-preview dependabot-preview bot force-pushed the dependabot/cargo/http-0.2.0 branch 3 times, most recently from bc13dac to a77ea5f Compare January 23, 2020 09:54
@dependabot-preview dependabot-preview bot force-pushed the dependabot/cargo/http-0.2.0 branch 2 times, most recently from 16b2d7b to 4178ec0 Compare February 3, 2020 12:09
@dependabot-preview
Copy link
Contributor Author

Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot rebase.

@dependabot-preview dependabot-preview bot force-pushed the dependabot/cargo/http-0.2.0 branch 2 times, most recently from 667bbf2 to 8ba5692 Compare February 10, 2020 08:43
@lucab
Copy link
Contributor

lucab commented Feb 11, 2020

Blocked by #223.

@dependabot-preview dependabot-preview bot force-pushed the dependabot/cargo/http-0.2.0 branch 2 times, most recently from a67965c to 162fb67 Compare February 13, 2020 09:03
Bumps [http](https://github.com/hyperium/http) from 0.1.20 to 0.2.0.
- [Release notes](https://github.com/hyperium/http/releases)
- [Changelog](https://github.com/hyperium/http/blob/master/CHANGELOG.md)
- [Commits](hyperium/http@v0.1.20...v0.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview
Copy link
Contributor Author

Looks like http is up-to-date now, so this is no longer needed.

@dependabot-preview dependabot-preview bot deleted the dependabot/cargo/http-0.2.0 branch February 21, 2020 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies security Pull requests that address a security vulnerability status/on-hold
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant