Skip to content

Commit aef2540

Browse files
committed
simplyifying docstring
1 parent f37ee3d commit aef2540

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

src/main/java/jadx/plugins/stringdecoder/B64DeobfuscatePass.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,9 @@ public void visit(MethodNode mth) {
169169
}
170170

171171
/**
172-
* Walks the SSA def-use chain from {@code csn} upward to find the top-level statement
173-
* instruction (the one that is not itself consumed by another instruction).
174-
* Attaching CODE_COMMENTS there — using the typed, list-merging addAttr — avoids the
175-
* replace-on-copy problem in inheritMetadata when multiple decoded strings live in the
176-
* same chained expression.
177-
*
178-
* Constructor pivot: when the chain enters an {@code invoke-direct <init>}, we pivot
179-
* through to the post-constructor user (the single non-init user of the new-instance
180-
* register) and continue walking from there. This ensures the comment always lands on
181-
* the enclosing statement rather than on the result-less {@code <init>} node, which
182-
* would be lost when ConstructorVisitor later merges new-instance + init.
172+
* Walks the SSA def-use chain to find the top-level statement instruction.
173+
* Pivots through {@code <init>} constructors to avoid landing on the result-less init node,
174+
* which would be lost when ConstructorVisitor later merges new-instance + init.
183175
*/
184176
private static InsnNode findStatementInsn(ConstStringNode csn) {
185177
RegisterArg result = csn.getResult();

0 commit comments

Comments
 (0)