ConstEncrypt不加密长度为0的字符串

before-split
walon 2025-05-26 19:48:55 +08:00
parent 78699d7959
commit b51893d154
1 changed files with 4 additions and 0 deletions

View File

@ -432,6 +432,10 @@ namespace Obfuz.ObfusPasses.ConstEncrypt
public override bool NeedObfuscateString(MethodDef method, bool currentInLoop, string value)
{
if (string.IsNullOrEmpty(value))
{
return false;
}
ObfuscationRule rule = GetMethodObfuscationRule(method);
if (rule.encryptString == false)
{