![]() |
|
#1
|
||||
|
||||
|
Reflector gets wrong decompiling result?
same dll and same function body, different decompiling results for Reflector, dotPeek, dnSpy(all are latest versions).
Reflector Code:
private uint e(byte[] a, ref int b)
{
b += 4;
return BitConverter.ToUInt32(a, b);
}
Code:
private uint e(byte[] a, ref int b)
{
int uint32 = (int) BitConverter.ToUInt32(a, b);
b += 4;
return (uint) uint32;
}
Code:
.method private hidebysig instance unsigned int32
e(
unsigned int8[] a,
int32& b
) cil managed
{
.maxstack 8
IL_0000: ldarg.1 // a
IL_0001: ldarg.2 // b
IL_0002: ldind.i4
IL_0003: call unsigned int32 [mscorlib]System.BitConverter::ToUInt32(unsigned int8[], int32)
IL_0008: ldarg.2 // b
IL_0009: ldarg.2 // b
IL_000a: ldind.i4
IL_000b: ldc.i4.4
IL_000c: add
IL_000d: stind.i4
IL_000e: ret
} // end of method e
__________________
AKA Solomon/blowfish. |
| The Following User Says Thank You to WhoCares For This Useful Post: | ||
chants (02-26-2019) | ||
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Decompiling the mov compiler | chants | General Discussion | 3 | 12-08-2016 21:16 |
| VB3 decompiling | wasq | General Discussion | 23 | 05-23-2005 02:30 |
| decompiling back to C++? | Rhodium | General Discussion | 44 | 10-11-2004 08:30 |