diff --git a/Confuser.Protections/ControlFlow/SwitchMangler.cs b/Confuser.Protections/ControlFlow/SwitchMangler.cs index 5e259e289..7dca5f55c 100644 --- a/Confuser.Protections/ControlFlow/SwitchMangler.cs +++ b/Confuser.Protections/ControlFlow/SwitchMangler.cs @@ -260,16 +260,8 @@ public override void Mangle(CilBody body, ScopeBlock root, CFContext ctx) { src.Offset >= block.Instructions.Last().Offset)) return true; - // Disable flow obfuscation for blocks reached by jump instructions. - // Bug in #153 caused exactly this behaviour, expect for allowing wrong jump instructions - // There is another issue present here tracked here: - // https://github.com/mkaring/ConfuserEx/issues/162 - // Until this issue is resolved, the ctrl flow obfuscation will be severely reduced. - if (srcs.Any()) - return true; - // Not targeted by the last of statements - if (srcs.Any(src => !statementLast.Contains(src))) + if (srcs.Any(src => statementLast.Contains(src))) return true; } return false;