Use correct upper limit in loop, and return false on failure...
This commit is contained in:
parent
3b9ba16df6
commit
58b1b27c69
|
@ -174,7 +174,7 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var instrs = cctor.Body.Instructions;
|
var instrs = cctor.Body.Instructions;
|
||||||
for (int i = 0; i < instrs.Count - 4; i++) {
|
for (int i = 0; i < instrs.Count - 3; i++) {
|
||||||
var ldci4_1 = instrs[i];
|
var ldci4_1 = instrs[i];
|
||||||
if (!DotNetUtils.isLdcI4(ldci4_1))
|
if (!DotNetUtils.isLdcI4(ldci4_1))
|
||||||
continue;
|
continue;
|
||||||
|
@ -199,7 +199,7 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user