mojira.dev
MC-280439

Values out of bounds for float and double parse successfully in SNBT resulting in storing the value Infinity

Values out of bounds for float and double parse successfully in SNBT resulting in storing the value Infinity

Steps to Reproduce:

  1. Run the command /data modify storage test:test foo set value [6.9e69f,6.9e6969]

    • Expected: command does not parse

  2. Run /data get storage test:test foo to get the data

    • Observed: data gets stored as Infinity

Attachments

Comments 1

Since the changelog says that NaN and Infinity are not supported, I would expect this to not be intentional

EpicGamerX125

(Unassigned)

Confirmed

Commands

25w09b

25w10a

Retrieved