Conversation
…well as improvements to error handling
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
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.
[0.8.0] - 2026-06-03
Changed
analyssacrate: the target-agnostic SSA IR, analyses, and optimization/deobfuscation pass framework now live inanalyssa, with dotscope providing the CIL-specific host (lifting, type system, codegen). dotscope builds onanalyssa0.2.0, which adds the native SSA substrate (SIMD/vector ops, native atomics, wide arithmetic, boolean ops), a fluent SSA builder and verifier-checked editor, and ~3–4× smaller core IR types. The CIL pass scheduler is built onanalyssa'sPassScheduler::emptyso the deobfuscation pipeline keeps full control over which passes runError::Parse(ParseFailure)with aParseStage, replacing the stringly-typedError::Malformed/Error::OutOfBounds/Error::HeapBoundsErrorvariants at parse sites. Themalformed_error!/ out-of-bounds helper macros and#[non_exhaustive] ParseFailuregive callers categorizable, source-located errors. Code that matched the removed variants must migrate toError::Parse(..)CilObject::method()now returnResult<_, Error>instead ofOption<_>, so a missing or unresolvable token reports a typed error rather than a bareNone. Callers usingif let Some(..)/?-on-Optionmust switch to theResultformsunwrap_used,expect_used,panic,arithmetic_side_effects,indexing_slicingset todeny) and reworked the metadata parsers (custom attributes, marshalling, resources, signatures), the validation layer (scanner, schema, raw/owned constraints), and the deobfuscation passes to use fallible, bounds-checked, overflow-safe access. The parser no longer panics on crafted inputsFixed
SsaConverterapplied cascading by-value replacements, which underanalyssa0.2.0's variable-id encoding could collapse a binary operation's operands (e.g.a - bbecomingb - b). The rename is now applied atomically/position-wise, so it is correct regardless of id numbering (handles operand aliasing, swaps, repeated operands, and the reserved placeholder id). This only affected method bodies regenerated from SSA (deobfuscation output)trace_to_phi) now followsneg/not/convwrappers, so ConfuserEx "expression" control-flow flattening (-(!!state)-style transforms) no longer hides the dispatcher state phi.Dispatcher::refreshreuses the same tracer instead of a shallow, fixed-depth walk