Mojira Archive
MC-80480

Extremely high values for certain attributes can cause server / client CPU spinning -> lock up

Extremely high attributes (Float.MAX_VALUE) such as generic.maxHealth, generic.movementSpeed and generic.attackDamage cause both the server and the client to burn CPU until they crash. They should be capped to sensible values. https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/browse/CraftBukkit-Patches/0134-Prevent-a-crash-involving-attributes.patch and https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/browse/CraftBukkit-Patches/0139-Allow-Attribute-Capping.patch

Not sure how to deal with this without causing no side effects at all (some guy out there probably has a 10^12 powered sword or something), but honestly I'd just pick a reasonably sane value. We use 2048 but that default occasionally gets a complaint, so maybe Short.MAX_VALUE would be a nice limit

Fixed

[Mod] md_5

[Mojang] Nathan Adams

2015-05-22, 11:29 AM

2015-08-04, 06:10 PM

2015-05-22, 12:25 PM

0

3

Unconfirmed

Minecraft 1.8.4

Minecraft 1.8.5