Mojira Archive
MC-101239

Client sending invalid slot id for MC|PickItem CPacketCustomPayload packet causes server side exceptions

The bug

The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

A CPacketCustomPayload packet with an invalid slot id causes a server side exception because the method net.minecraft.entity.player.InventoryPlayer.func_184430_d(int) uses the given inventory id as index for the inventory of the player. If the index is then invalid a ArrayIndexOutOfBoundsException is thrown.

Awaiting Response

Marcono1234

2016-04-24, 12:34 AM

2018-10-02, 11:26 PM

2018-10-02, 11:26 PM

1

2

Unconfirmed

exception, index, packet, server

Minecraft 1.9.2

-