From 87b20b00f27959bb5f88842708828d65c149b96e Mon Sep 17 00:00:00 2001 From: de4dot Date: Fri, 30 Nov 2012 03:24:15 +0100 Subject: [PATCH] Set new locals by calling SetLocals(), not by writing to the field --- de4dot.code/deobfuscators/CryptoObfuscator/MethodBodyReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/de4dot.code/deobfuscators/CryptoObfuscator/MethodBodyReader.cs b/de4dot.code/deobfuscators/CryptoObfuscator/MethodBodyReader.cs index 80f0214a..9902db32 100644 --- a/de4dot.code/deobfuscators/CryptoObfuscator/MethodBodyReader.cs +++ b/de4dot.code/deobfuscators/CryptoObfuscator/MethodBodyReader.cs @@ -36,7 +36,7 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator { public void read(MethodDef method) { this.parameters = method.Parameters; - this.locals = getLocals(method); + SetLocals(getLocals(method)); maxStackSize = (ushort)reader.ReadInt32(); ReadInstructionsNumBytes(reader.ReadUInt32());