openSUSE-SU-2020:0945-1
openSUSE-SU-2020:0945-1 · Mise à jour de sécurité openSUSE Leap 15.2 : rust, rust-cbindgen
Correctif disponible
Comparez avec votre version installée
Les produits concernés et les versions corrigées connues sont des informations publiques. Comparez-les avec votre version installée.
- rust openSUSE Leap 15.2Mettez à jour vers 1.43.1-lp152.3.5.1
- rust-cbindgen openSUSE Leap 15.2Mettez à jour vers 0.14.1-lp152.2.4.1
Vérifiez la version installée :
rpm -q rustrpm -q rust-cbindgenÉvaluez les risques de votre serveur
La vérification gratuite donne une note et un résumé des risques par pile technologique, sans inscription. Elle ne précise pas si cette vulnérabilité particulière vous concerne.
La surveillance compare les informations publiques aux logiciels de vos serveurs. Elle fournit les résultats détaillés et l’ordre des mises à jour.
curl -fsSL https://patchfirst.dev/check.sh | shLes canaux diffusent des actualités générales sur les technologies ; la surveillance signale les nouveaux résultats sur vos serveurs dans votre tableau de bord, par notification du navigateur, dans Telegram ou par webhook.
Cette page présente des faits issus du bulletin de la distribution. Consultez l’avis original avant d’installer la mise à jour.
Cette page présente une partie des faits des sources. Consultez les avis liés pour la description complète et les versions concernées.
This update for rust, rust-cbindgen fixes the following issues:
rust was updated for use by Firefox 76ESR.
- Fixed miscompilations with rustc 1.43 that lead to LTO failures (bsc#1173202)
Update to version 1.43.1
- Updated openssl-src to 1.1.1g for CVE-2020-1967.
- Fixed the stabilization of AVX-512 features.
- Fixed `cargo package --list` not working with unpublished dependencies.
Update to version 1.43.0
+ Language:
- Fixed using binary operations with `&{number}` (e.g. `&1.0`) not having the type inferred correctly.
- Attributes such as `#[cfg()]` can now be used on `if` expressions.
- Syntax only changes:
- Allow `type Foo: Ord` syntactically.
- Fuse associated and extern items up to defaultness.
- Syntactically allow `self` in all `fn` contexts.
- Merge `fn` syntax + cleanup item parsing.
- `item` macro fragments can be interpolated into `trait`s, `impl`s, and `extern` blocks. For example, you may now write:
macro_rules! mac_trait {
($i:item) => {
trait T { $i }
}
}
mac_trait! {
fn foo() {}
}- These are still rejected *semantically*, so you will likely receive an error but these changes can be seen and parsed by macros and conditional compilation.
+ Compiler
- You can now pass multiple lint flags to rustc to override the previous flags.
For example; `rustc -D unused -A unused-variables` denies everything in the `unused` lint group except `unused-variables` which is explicitly allowed. However, passing `rustc -A unused-variables -D unused` denies everything in the `unused` lint group **including** `unused-variables` since the allow flag is specified before the deny flag (and therefore overridden).
- rustc will now prefer your system MinGW libraries over its bundled libraries if they are available on `windows-gnu`.
- rustc now buffers errors/warnings printed in JSON.
Libraries:
- `Arc<[T; N]>`, `Box<[T; N]>`, and `Rc<[T; N]>`, now implement `TryFrom<Arc<[T]>>`,`TryFrom<Box<[T]>>`, and `TryFrom<Rc<[T]>>` respectively. **Note** These conversions are only available when `N` is `0..=32`.
- You can now use associated constants on floats and integers directly, rather than having to import the module. e.g. You can now write `u32::MAX` or `f32::NAN` with no imports.
- `u8::is_ascii` is now `const`.
- `String` now implements `AsMut<str>`.
- Added the `primitive` module to `std` and `core`. This module reexports Rust's primitive types. This is mainly useful in macros where you want avoid these types being shadowed.
- Relaxed some of the trait bounds on `HashMap` and `HashSet`.
- `string::FromUtf8Error` now implements `Clone + Eq`.
+ Stabilized APIs
- `Once::is_completed`
- `f32::LOG10_2`
- `f32::LOG2_10`
- `f64::LOG10_2`
- `f64::LOG2_10`
- `iter::once_with`
+ Cargo
- You can now set config `[profile]`s in your `.cargo/config`, or through your environment.
- Cargo will now set `CARGO_BIN_EXE_<name>` pointing to a binary's executable path when running integration tests or benchmarks. `<name>` is the name of your binary as-is e.g. If you wanted the executable path for a binary named `my-program`you would use `env!('CARGO_BIN_EXE_my-program')`.
+ Misc
- Certain checks in the `const_err` lint were deemed unrelated to const evaluation, and have been moved to the `unconditional_panic` and `arithmetic_overflow` lints.
+ Compatibility Notes
- Having trailing syntax in the `assert!` macro is now a hard error. This has been a warning since 1.36.0.
- Fixed `Self` not having the correctly inferred type. This incorrectly led to some instances being accepted, and now correctly emits a hard error.
Update to version 1.42.0:
+ Language
- You can now use the slice pattern syntax with subslices.
- You can now use #[repr(transparent)] on univariant enums. Meaning that you can create an enum that has the exact layout and ABI of the type it contains.
- There are some syntax-only changes:
- default is syntactically allowed before items in trait definitions.
- Items in impls (i.e. consts, types, and fns) may syntactically leave out their bodies in favor of ;.
- Bounds on associated types in impls are now syntactically allowed (e.g. type Foo: Ord;).
- ... (the C-variadic type) may occur syntactically directly as the type of any function parameter. These are still rejected semantically, so you will likely receive an error but these changes can be seen and parsed by procedural macros and conditional compilation.
+ Compiler
- Added tier 2 support for armv7a-none-eabi.
- Added tier 2 support for riscv64gc-unknown-linux-gnu.
- Option::{expect,unwrap} and Result::{expect, expect_err, unwrap, unwrap_err} now produce panic messages pointing to the location where they were called, rather than core's internals. Refer to Rust's platform support page for more information on Rust's tiered platform support.
+ Libraries
- iter::Empty<T> now implements Send and Sync for any T.
- Pin::{map_unchecked, map_unchecked_mut} no longer require the return type to implement Sized.
- io::Cursor now derives PartialEq and Eq.
- Layout::new is now const.
- Added Standard Library support for riscv64gc-unknown-linux-gnu.
+ Stabilized APIs
- CondVar::wait_while
- CondVar::wait_timeout_while
- DebugMap::key
- DebugMap::value
- ManuallyDrop::take
- matches!
- ptr::slice_from_raw_parts_mut
- ptr::slice_from_raw_parts
+ Cargo
- You no longer need to include extern crate proc_macro; to be able to use proc_macro; in the 2018 edition.
+ Compatibility Notes
- Error::description has been deprecated, and its use will now produce a warning. It's recommended to use Display/to_string instead.
Update to version 1.41.1:
- Always check types of static items
- Always check lifetime bounds of `Copy` impls
- Fix miscompilation in callers of `Layout::repeat`
Update to version 1.41.0:
+ Language
- You can now pass type parameters to foreign items when implementing traits. E.g. You can now write `impl<T> From<Foo> for Vec<T> {}`.
- You can now arbitrarily nest receiver types in the `self` position. E.g. you can now write `fn foo(self: Box<Box<Self>>) {}`. Previously only `Self`, `&Self`, `&mut Self`, `Arc<Self>`, `Rc<Self>`, and `Box<Self>` were allowed.
- You can now use any valid identifier in a `format_args` macro. Previously identifiers starting with an underscore were not allowed.
- Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and enum variants. These are still rejected semantically, but can be seen and parsed by procedural macros and conditional compilation.
+ Compiler
- Rustc will now warn if you have unused loop `'label`s.
- Removed support for the `i686-unknown-dragonfly` target.
- Added tier 3 support\* for the `riscv64gc-unknown-linux-gnu` target.
- You can now pass an arguments file passing the `@path` syntax to rustc. Note that the format differs somewhat from what is found in other tooling; please see the documentation for more information.
- You can now provide `--extern` flag without a path, indicating that it is available from the search path or specified with an `-L` flag.
Refer to Rust's [platform support page][forge-platform-support] for more information on Rust's tiered platform support.
+ Libraries
- The `core::panic` module is now stable. It was already stable through `std`.
- `NonZero*` numerics now implement `From<NonZero*>` if it's a smaller integer width. E.g. `NonZeroU16` now implements `From<NonZeroU8>`.
- `MaybeUninit<T>` now implements `fmt::Debug`.
+ Stabilized APIs
- `Result::map_or`
- `Result::map_or_else`
- `std::rc::Weak::weak_count`
- `std::rc::Weak::strong_count`
- `std::sync::Weak:
- Publication
- Mise à jour
Vulnérabilités corrigées
Pile logicielle: system
Paquets mis à jour et versions
rust openSUSE Leap 15.2
- Plages de versions concernées
- ECOSYSTEM: < 1.43.1-lp152.3.5.1
Mettez à jour vers 1.43.1-lp152.3.5.1
rust-cbindgen openSUSE Leap 15.2
- Plages de versions concernées
- ECOSYSTEM: < 0.14.1-lp152.2.4.1
Mettez à jour vers 0.14.1-lp152.2.4.1