[Soot-list] exception happened during analysis

Yue Duan bestdyxjtu at yahoo.com
Fri Aug 12 15:42:39 EDT 2016


Hi there,
Sorry to bother. I encountered an exception during analysis using soot-2.5.0. I was trying to generate control-flow graph and had this exception.
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1967) at soot.coffi.CONSTANT_Methodref_info.createJimpleConstantValue(CONSTANT_Methodref_info.java:102) at soot.coffi.CONSTANT_MethodHandle_info.createJimpleConstantValue(CONSTANT_MethodHandle_info.java:72) at soot.coffi.CFG.generateJimple(CFG.java:4342) at soot.coffi.CFG.jimplify(CFG.java:1267) at soot.coffi.CFG.jimplify(CFG.java:955) at soot.coffi.CoffiMethodSource.getBody(CoffiMethodSource.java:100) at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:89) at soot.SootMethod.retrieveActiveBody(SootMethod.java:322) at soot.jimple.toolkits.callgraph.OnFlyCallGraphBuilder.processNewMethod(OnFlyCallGraphBuilder.java:531) at soot.jimple.toolkits.callgraph.OnFlyCallGraphBuilder.processReachables(OnFlyCallGraphBuilder.java:426) at soot.jimple.toolkits.callgraph.CallGraphBuilder.build(CallGraphBuilder.java:84) at soot.jimple.toolkits.callgraph.CHATransformer.internalTransform(CHATransformer.java:43) at soot.SceneTransformer.transform(SceneTransformer.java:39) at soot.Transform.apply(Transform.java:89) at soot.RadioScenePack.internalApply(RadioScenePack.java:57) at soot.jimple.toolkits.callgraph.CallGraphPack.internalApply(CallGraphPack.java:49) at soot.Pack.apply(Pack.java:114) at soot.PackManager.runWholeProgramPacks(PackManager.java:417) at soot.PackManager.runPacks(PackManager.java:336) at soot.Main.run(Main.java:198) at soot.Main.main(Main.java:141)
Seems like the nameAndType string doesn't contain ":" when executing 
String name = nameAndType.substring(0, nameAndType.indexOf(":"));


So I printed the string out as follows:nameAndType: lambda$getHeadlessProperty$0


Could you please help me fix this issue?
Thanks,Yue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20160812/3f605f48/attachment.html 


More information about the Soot-list mailing list