Skip to content

Account for potential overflow of various tags #45

Open
@dktapps

Description

@dktapps

The maximum possible size of a TAG_ByteArray's payload is 2GiB, but this is not currently capped by the library. While this is a less immediate problem than the old StringTag bug, this also needs to be catered for.

This is also a problem for TAG_List and TAG_IntArray since this uses a 4-byte integer prefix to store length as well.

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

      Participants

      @dktapps

      Issue actions

        Account for potential overflow of various tags · Issue #45 · pmmp/NBT