NBT icon indicating copy to clipboard operation
NBT copied to clipboard

Account for potential overflow of various tags

Open dktapps opened this issue 7 years ago • 0 comments

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.

dktapps avatar Jan 07 '19 19:01 dktapps