-
Notifications
You must be signed in to change notification settings - Fork 303
Rust 1.34.2 release announcement #386
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
Merged
Merged
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
layout: post | ||
title: "Announcing Rust 1.34.2" | ||
author: The Rust Release Team | ||
release: true | ||
--- | ||
|
||
The Rust team has published a new point release of Rust, 1.34.2. Rust is a | ||
programming language that is empowering everyone to build reliable and | ||
efficient software. | ||
|
||
If you have a previous version of Rust installed via rustup, getting Rust | ||
1.34.2 is as easy as: | ||
|
||
```console | ||
$ rustup update stable | ||
``` | ||
|
||
If you don't have it already, you can [get `rustup`][install] from the | ||
appropriate page on our website. | ||
|
||
[install]: https://www.rust-lang.org/install.html | ||
[notes]: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-TODO | ||
|
||
## What's in 1.34.2 stable | ||
|
||
Sean McArthur reported a [security vulnerability][ml] affecting the standard | ||
library that caused the [`Error::downcast`][Error::downcast] family of methods | ||
to perform unsound casts when a manual implementation of the | ||
[`Error::type_id`][Error::type_id] method returned the wrong | ||
[`TypeId`][TypeId], leading to security issues such as out of bounds | ||
reads/writes/etc. | ||
|
||
The [`Error::type_id`][Error::type_id] method was recently stabilized as part | ||
of Rust 1.34.0. This point release **destabilizes** it, preventing any code on | ||
the stable and beta channels to implement or use it, awaiting future plans that | ||
will be discussed in [issue #60784][60784]. | ||
|
||
An in-depth explaination of this issue was posted in yesterday's [security | ||
advisory][ml]. The assigned CVE for the vulnerability is [CVE-2019-12083][cve]. | ||
|
||
[ml]: https://groups.google.com/d/msg/rustlang-security-announcements/aZabeCMUv70/-2Y6-SL6AQAJ | ||
[Error::downcast]: https://doc.rust-lang.org/stable/std/error/trait.Error.html#method.downcast | ||
[Error::type_id]: https://doc.rust-lang.org/stable/std/error/trait.Error.html#method.type_id | ||
[TypeId]: https://doc.rust-lang.org/stable/std/any/struct.TypeId.html | ||
[60784]: https://github.com/rust-lang/rust/issues/60784 | ||
[cve]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12083 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.