Skip to content

Creating a Chunk::from_raw_buffer with a 0-sized buffer results in a segfault in safe code. #1497

@HildarTheDorf

Description

@HildarTheDorf

Chunk::from_raw_buffer with a Box containing a 0-length array results in an invalid free of null. from_raw_buffer should probably fail on 0-length buffers, but currently it results in unsafety in a safe function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions