mojira.dev
MC-313817

The server becomes unresponsive and eventually crashes when using `/loot` with binomial bonus counts that have extremely large extra values

The Bug:

The server becomes unresponsive and eventually crashes when using /loot with binomial bonus counts that have extremely large extra values.

Steps to Reproduce:

  1. Fish up items from a loot table with a binomial bonus count that has an extremely large extra value by using the command provided below.

    /loot spawn ~ ~ ~ fish {pools:[{rolls:100,entries:[{type:"item",name:"wheat_seeds",modifier:{type:"apply_bonus",enchantment:"fortune",formula:"binomial_with_bonus_count",parameters:{extra:2147483647,probability:0}}}]}]} ~ ~ ~
  2. Try to perform actions like throwing items on the ground and observe how the server is unresponsive.

Observed Behavior:

The server becomes unresponsive and eventually crashes.

Expected Behavior:

The server would not become unresponsive or crash.

Comments 0

No comments.

Avoma

(Unassigned)

Confirmed

26.3, 26.4 Release Candidate 1

Retrieved