mojira.dev
MC-123026

Command parser does not check for int-overflows

The bug

The new Minecraft command parser does not check for int-overflows in command arguments. This causes the game to instantly freeze as soon as the command is executed.

How to reproduce

  1. Execute the command /tp ~ 9223372036854775807 ~

  2. Notice that the game freezes

  3. Trying to rejoin the world instantly kicks the player with the message "Invalid move player packet received".

Environment

Operating system : Windows 10 Home Single Language x64
Java Version : Java 8 update 144
Launcher Profile Options : Default

Linked issues

Attachments

Comments 1

migrated

(Unassigned)

Confirmed

/tp, crash

Minecraft 17w49b

Retrieved