[Soot-list] Error while writing instrumented class files
Rashmi Mudduluru
mudduluru.rashmi at csa.iisc.ernet.in
Wed Oct 15 12:37:20 EDT 2014
Hi,
I am instrumenting a class file in soot and I get the error message -
"Negative Stack Logical height has been attained".
The code snippet is as follows:
Chain units = b.getUnits();
Iterator<Unit> unitIt = units.snapshotIterator();
while (unitIt.hasNext()) {
Unit u = unitIt.next();
if((Stmt)u instanceof AssignStmt){
InvokeExpr incExpr= Jimple.v().newStaticInvokeExpr(test.makeRef());
Stmt incStmt = Jimple.v().newInvokeStmt(incExpr);
Stmt stmt = (Stmt)u;
units.insertBefore(incStmt, stmt);
}
}
Is anyone aware of this issue?
Thanks,
Rashmi.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Soot-list
mailing list