mirror of
https://github.com/rustsec/advisory-db.git
synced 2025-12-27 01:54:07 -05:00
Added advisory for undefined behavior in openssl (#2021)
This commit is contained in:
17
crates/openssl/RUSTSEC-0000-0000.md
Normal file
17
crates/openssl/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,17 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "openssl"
|
||||
date = "2024-07-21"
|
||||
url = "https://github.com/sfackler/rust-openssl/pull/2266"
|
||||
|
||||
[affected]
|
||||
functions = { "openssl::bio::MemBio::get_buf" = ["< 0.10.66, >=0.8.0"] }
|
||||
|
||||
[versions]
|
||||
patched = [">= 0.10.66"]
|
||||
```
|
||||
|
||||
# `MemBio::get_buf` has undefined behavior with empty buffers
|
||||
|
||||
Previously, `MemBio::get_buf` called `slice::from_raw_parts` with a null-pointer, which violates the functions invariants, leading to undefined behavior. In debug builds this would produce an assertion failure. This is now fixed.
|
||||
Reference in New Issue
Block a user