Skip to content

Use of "int" for length is troubling #5

Description

@jasom

It is possible for allocations to exceed INT_MAX in size, most notably on most 64-bit C implementations.

I think ptrdiff_t is the best signed type available for using this, but may be wrong.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions