mojira.dev
MC-313815

The server becomes unresponsive and eventually crashes when using `/loot` with binomial distributions that have extremely large numbers of trials

The Bug:

The server becomes unresponsive and eventually crashes when using /loot with binomial distributions that have extremely large numbers of trials.

Steps to Reproduce:

  1. Spawn items from a loot table whose item count uses a binomial distribution with an extremely large number of trials by using the command provided below.

    /loot spawn ~ ~ ~ loot {pools:[{rolls:100,entries:[{type:"item",name:"stone",modifier:{type:"set_count",count:{type:"binomial",n:2147483647,p: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)

Plausible

26.3, 26.4 Release Candidate 1

Retrieved