Skip to content

Commit 8677448

Browse files
committed
fix(obfuscator): fixed invoke dynamic by exemption :(
1 parent 1492c35 commit 8677448

11 files changed

Lines changed: 20944 additions & 13 deletions

File tree

dev.skidfuscator.maple-ir/org.mapleir.stdlib/src/main/java/org/mapleir/stdlib/collections/graph/FastDirectedGraph.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,19 @@ public Collection<N> getCommonAncestor(Collection<N> nodes) {
245245
int maxDepth = 0;
246246

247247
List<N> above = new ArrayList<>();
248+
/* Add the root node */
248249
above.add(node);
249250

250251
while (true) {
252+
/* Create a temp stack */
251253
final List<N> stack = new ArrayList<>(above);
254+
255+
/* Clear the heading */
252256
above.clear();
257+
258+
/* Add all the successors to all the
259+
previous layers.
260+
*/
253261
for (N n : stack) {
254262
this.getSuccessors(n).forEach(above::add);
255263
}

dev.skidfuscator.obfuscator/commons/src/main/java/dev/skidfuscator/jghost/tree/GhostClassNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ private GhostClassNode(final ClassNode classNode) {
4040
this.version = classNode.version;
4141
this.access = classNode.access;
4242
this.name = classNode.name;
43+
this.superName = classNode.superName;
4344

4445
this.fields = classNode.fields
4546
.stream()
@@ -79,6 +80,7 @@ public ClassNode read() {
7980

8081
node.version = version;
8182
node.methods = new ArrayList<>();
83+
node.superName = superName;
8284

8385
for (GhostMethodNode methodNode : methods) {
8486
node.methods.add(methodNode.read());

0 commit comments

Comments
 (0)