Skip to content

RUSTSEC-2024-0357: MemBio::get_buf has undefined behavior with empty buffers #19

Open
@github-actions

Description

@github-actions
Details
Package openssl
Version 0.10.44
URL sfackler/rust-openssl#2266
Patched Versions >=0.10.66

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions