fix: resolve cflow null-targets, KeepOldMaxStack, and enable cross-platform .NET Framework builds#33
Open
doomedraven wants to merge 1 commit into
Conversation
…atform .NET Framework builds
doomedraven
force-pushed
the
fix/cflow-and-stack-stability
branch
from
July 23, 2026 19:39
0a5c4e7 to
5df9406
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses critical deobfuscator engine stability issues and integrates support for compiling legacy
.NET Framework 4.8targets natively on cross-platform systems (macOS and Linux).These are high-priority, zero-side-effect bug fixes and compilation enhancements that significantly improve reliability.
Key Changes
Control Flow Emulator Safeguard (
BlockCflowDeobfuscator.cs):Global
KeepOldMaxStackSave Optimization (ObfuscatedFile.cs):MetadataFlags.KeepOldMaxStackduring saving. This bypasses the heavy, compiler-level stack-depth estimation and recalculation steps, which are prone to crashing on heavily obfuscated assemblies.In-Process Invocation Accessibility (
de4dot.cui/Program.cs):class Programinsidede4dot.cuitopublic class Programso that other projects can call itsMainmethod in-process.Cross-Platform .NET Framework Builds (
De4DotCommon.props):Microsoft.NETFramework.ReferenceAssembliesfor all .NET Framework builds, enabling standard .NET SDKs on macOS and Linux to compile thenet48solution natively.<SelfContained>property to only apply on non-framework builds, resolving the fatal build RID-check errorNETSDK1032on ARM64 hosts.