mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2025-12-30 16:24:05 +01:00
Merge pull request #575 from Qwaz/0063-xcb
xcb: Soundness issue with base::Error
This commit is contained in:
20
crates/xcb/RUSTSEC-0000-0000.md
Normal file
20
crates/xcb/RUSTSEC-0000-0000.md
Normal 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.
|
||||
Reference in New Issue
Block a user