From 25762369603f43351bc5f46dd458dee05eb537b0 Mon Sep 17 00:00:00 2001 From: walon Date: Tue, 12 Aug 2025 14:19:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=AF=B9=E6=B3=9B=E5=9E=8B?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E6=8E=A7=E5=88=B6=E6=B5=81=E6=B7=B7=E6=B7=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ControlFlowObfus/MethodControlFlowCalculator.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Editor/ObfusPasses/ControlFlowObfus/MethodControlFlowCalculator.cs b/Editor/ObfusPasses/ControlFlowObfus/MethodControlFlowCalculator.cs index 3aa46db..b4aae89 100644 --- a/Editor/ObfusPasses/ControlFlowObfus/MethodControlFlowCalculator.cs +++ b/Editor/ObfusPasses/ControlFlowObfus/MethodControlFlowCalculator.cs @@ -918,6 +918,10 @@ namespace Obfuz.ObfusPasses.ControlFlowObfus //{ // return false; //} + if (_method.HasGenericParameters || _method.DeclaringType.HasGenericParameters) + { + return false; + } var evc = new EvalStackCalculator(_method); BuildBasicBlockLink(evc); if (!CheckNotContainsNotSupportedEvalStackData())