Skip to content

ZST reallocs are a minefield. #32

@MaulingMonkey

Description

@MaulingMonkey
  • malloc(0) may allocate where realloc(ptr, 0) frees or is undefined behavior!
  • Some allocators can create zero-sized allocs, but then can't reallocate them!
  • Kinda wish my realloc traits took NonZeroUsizes

Metadata

Metadata

Assignees

No one assigned

    Labels

    allocatorAllocator implementation(s) relatedbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions