mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-07 04:01:35 +01:00
report unsoundness of lmdb-rs (#1724)
* report unsoundness of lmdb-rs * report unsoundness of lmdb-rs
This commit is contained in:
15
crates/lmdb-rs/RUSTSEC-0000-0000.md
Normal file
15
crates/lmdb-rs/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,15 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "lmdb-rs"
|
||||
date = "2023-06-26"
|
||||
informational = "unsound"
|
||||
url = "https://github.com/vhbit/lmdb-rs/issues/67"
|
||||
keywords = ["unsound"]
|
||||
|
||||
[versions]
|
||||
patched = []
|
||||
```
|
||||
|
||||
# impl `FromMdbValue` for bool is unsound
|
||||
The implementation of `FromMdbValue` have several unsoundness issues. First of all, it allows to reinterpret arbitrary bytes as a bool and could make undefined behavior happen with safe function. Secondly, it allows transmuting pointer without taking memory layout into consideration. The details of reproducing the bug were included in url above.
|
||||
Reference in New Issue
Block a user