UnderminersTeam / UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other Game Maker: Studio games!)
GNU General Public License v3.0
1.07k stars 206 forks source link

"with" inside loop fails to decompile #382

Open Grossley opened 3 years ago

Grossley commented 3 years ago

This code entry causes UndertaleModTool to crash. I decompiled the disassembly manually and determined my decompilation to be accurate.

The files (the disassembly and the accurate decompiled code entry) are below:

Error_Assembly.zip

Grossley commented 3 years ago

This decompiled code also causes the same StackOverflow exception.

gml_Object_HyperGrenade_Alarm_0.zip

Grossley commented 3 years ago

This also causes stack overflow

var i = 0
while(i++ < 10) {
    with(0) if i == 5 break;
}
Grossley commented 3 years ago

And

var i = 0
while(i++ < 10) {
    with(0)
        break;
}

and

repeat(1) with(0) break;