openssl's `MemBio::get_buf` has undefined behavior with empty buffers
Moderate severity
GitHub Reviewed
Published
Jul 22, 2024
to the GitHub Advisory Database
•
Updated Aug 1, 2024
Description
Published to the GitHub Advisory Database
Jul 22, 2024
Reviewed
Jul 22, 2024
Last updated
Aug 1, 2024
Previously,
MemBio::get_buf
calledslice::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.References