mojira.dev
MC-280315

Crash when listing suggestions with invalid Unicode escapes

When using a invalid Unicode escapes in SNBT like “\xAAAAAA” or “\uAAAAAA” the game crashes when it tries to list suggestions “\x” and “\u” also don’t seem to be limited to the 2 and 4 digit escape like the changelog suggests

reproducing this issue is as simple and typing in chat /tellraw @p {text:"\xAAAAAA"} then the game will crash

Stack trace:

java.lang.IllegalArgumentException: Not a valid Unicode code point: 0xAAAAAA
	at java.base/java.lang.String.valueOfCodePoint(Unknown Source)
	at java.base/java.lang.Character.toString(Unknown Source)
	at ut.a(SourceFile:671)
	at bqa$c.a(SourceFile:49)
	at bps.a(SourceFile:60)
	at bpv$b.a(SourceFile:66)
	at bqd$g.a(SourceFile:31)
	at bqd$a.a(SourceFile:53)
	at bqa$c.a(SourceFile:46)
	at bps.a(SourceFile:60)
	at bqd$e.a(SourceFile:103)
	at bqa$c.a(SourceFile:46)
	at bps.a(SourceFile:60)
	at bpv$b.a(SourceFile:66)
	at bqd$d.a(SourceFile:80)
	at bqd$g.a(SourceFile:31)
	at bqd$a.a(SourceFile:53)
	at bqa$c.a(SourceFile:46)
	at bps.a(SourceFile:60)
	at bpv$b.a(SourceFile:66)
	at bqd$g.a(SourceFile:31)
	at bqd$a.a(SourceFile:53)
	at bqa$c.a(SourceFile:46)
	at bps.a(SourceFile:60)
	at bpv$b.a(SourceFile:66)
	at bqd$g.a(SourceFile:31)
	at bqa$c.a(SourceFile:46)
	at bps.a(SourceFile:60)
	at bqd$f.a(SourceFile:157)
	at bqa$c.a(SourceFile:46)
	at bps.a(SourceFile:60)
	at bpv$b.a(SourceFile:66)
	at bqd$g.a(SourceFile:31)
	at bqa$c.a(SourceFile:46)
	at bps.a(SourceFile:60)
	at bpv$b.a(SourceFile:66)
	at bqd$g.a(SourceFile:31)
	at bqd$a.a(SourceFile:53)
	at bqa$c.a(SourceFile:46)
	at bps.a(SourceFile:60)
	at bpz.b(SourceFile:12)
	at bqf.a(SourceFile:26)
	at bqf.a(SourceFile:70)
	at bqe$2.a(SourceFile:49)
	at bqj.listSuggestions(SourceFile:26)
	at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:69)
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:541)
	at fuo.d(SourceFile:214)
	at fyz.b(SourceFile:85)
	at fuu.d(SourceFile:155)
	at fuu.b(SourceFile:150)
	at fuu.a(SourceFile:358)
	at fwh.a(SourceFile:93)
	at frc.a(SourceFile:514)
	at frc.c(SourceFile:534)
	at btf.execute(SourceFile:110)
	at frc.b(SourceFile:534)
	at org.lwjgl.glfw.GLFWCharModsCallbackI.callback(GLFWCharModsCallbackI.java:46)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3509)
	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:165)
	at frd.c(SourceFile:1373)
	at frd.f(SourceFile:935)
	at net.minecraft.client.main.Main.main(SourceFile:265)

Linked issues

Attachments

Comments 1

GStudiosX

boq

Confirmed

Platform

Very Important

Crash

25w09a

25w10a

Retrieved