Merge pull request #575 from Qwaz/0063-xcb

xcb: Soundness issue with base::Error
This commit is contained in:
Sergey "Shnatsel" Davidoff
2021-01-18 22:10:06 +01:00
committed by GitHub

View File

@@ -0,0 +1,20 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "xcb"
date = "2020-12-10"
url = "https://github.com/rtbo/rust-xcb/issues/93"
categories = ["memory-corruption"]
informational = "unsound"
[versions]
patched = []
```
# Soundness issue with base::Error
`base::Error` type contains public field named `ptr`.
With this definition, it is possible to create a `base::Error` with an invalid pointer and trigger memory safety errors
such as use-after-free or double-free with safe Rust.
The users of `xcb` crate are advised not to manipulate the field.