Description
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.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | openssl | < 0.10.66 | 0.10.66 | GHSA-q445-7m23-qrmw |
| crates.io | openssl | >= 0.0.0-0, < 0.10.66 | 0.10.66 | RUSTSEC-2024-0357 |
References
- https://github.com/sfackler/rust-openssl/pull/2266 web
- https://github.com/sfackler/rust-openssl/commit/aef36e0f3950653148d6644309ee41ccf16e02bb web
- https://github.com/sfackler/rust-openssl package
- https://github.com/sfackler/rust-openssl/releases/tag/openssl-v0.10.66 web
- https://rustsec.org/advisories/RUSTSEC-2024-0357.html web