RUSTSEC-2019-0036

Type confusion if private_get_type_id is overriden

Issued
Package
failure (crates.io)
Type
Unsound
Aliases
Details
https://github.com/rust-lang-nursery/failure/issues/336
Patched
no patched versions
Keywords
  • unsound
Affected Functions
Version
failure::Fail::__private_get_type_id__
  • >=0.1.0

Description

Safe Rust code can implement malfunctioning __private_get_type_id__ and cause type confusion when downcasting, which is an undefined behavior.

Users who derive Fail trait are not affected.

More