Server failing to read buffer of CPacketCustomPayload packet prints exception every time
The bug
The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.
If the server receives a CPacketCustomPayload packet with an invalid buffer, the exception is printed to the log. Modified clients could abuse this and constantly send invalid buffers.
The server should maybe notice that a client is constantly sending invalid buffers and kick the player.
How to reproduce (modded client)
Send for example a "MC|PickItem" CPacketCustomPayload packet with an empty buffer
addToSendQueue(new CPacketCustomPayload("MC|PickItem", (new PacketBuffer(Unpooled.buffer()))));