You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiler generates invalid IL code for set method bodies #10
.method public hidebysig specialname static
string get_HelloWorldProperty() cil managed
{
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
// Code size 11 (0xb)
.maxstack 8
IL_0000: nop
IL_0001: ldstr "This is a Test"
//IL_0006: stloc.0
//IL_0007: br.s IL_0009
//IL_0009: ldloc.0
IL_000a: ret
} // end of method Program::get_HelloWorldProperty
The uncommented lines (IL_0006, IL_0007, IL_0009) are generated, but are invalid at this place. So the patched application crashes with a CLR Exception System.InvalidProgramException.
changed the title [-]Compiler generates invaid IL code for set method bodies[/-][+]Compiler generates invalid IL code for set method bodies[/+]on Sep 6, 2016
Activity
[-]Compiler generates invaid IL code for set method bodies[/-][+]Compiler generates invalid IL code for set method bodies[/+]