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.
{
"severity": "MODERATE",
"github_reviewed": true,
"cwe_ids": [
"CWE-476"
],
"nvd_published_at": null,
"github_reviewed_at": "2024-07-22T17:34:53Z"
}