Skip to content

Commit

Permalink
yet another fix for APKs that do not pull exception references
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenArzt committed Nov 26, 2015
1 parent 08d7bbb commit 6d1c274
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/soot/dexpler/DexTrapStackFixer.java
Expand Up @@ -43,7 +43,9 @@ protected void internalTransform(Body b, String phaseName,
// Add the exception reference
Local l = new LocalGenerator(b).generateLocal(t.getException().getType());
Stmt caughtStmt = Jimple.v().newIdentityStmt(l, Jimple.v().newCaughtExceptionRef());
b.getUnits().insertBefore(caughtStmt, t.getHandlerUnit());
b.getUnits().add(caughtStmt);
b.getUnits().add(Jimple.v().newGotoStmt(t.getHandlerUnit()));
t.setHandlerUnit(caughtStmt);
}
}

Expand Down

0 comments on commit 6d1c274

Please sign in to comment.