Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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