Language: Java
Label: vulnerable
CWE: CWE-502 \u2014 Deserialization of Untrusted Data
The product deserializes untrusted data without sufficiently verifying that the resulting data will be valid.

Code:
	public NBTTagCompound readNBTTagCompound() throws IOException {
		boolean isEmpty = (readByte() == 0);
		if (isEmpty) {
			return null;
		}

		return CompressedStreamTools.func_152456_a(new ByteBufInputStream(localBuffer), NBTSizeTracker.field_152451_a);
	}