[Soot-list] [Beginnger] A few questions about cfg and Soot

Eric Bodden eric.bodden at mail.mcgill.ca
Wed Jul 8 13:09:56 EDT 2009


> Hmm, for some analysis i need to know the order of calls e.g. i want to know
> if there is a database.writeData() call and if there is on every path
> reaching this call a database.open() call.

In this case you would need to construct your own data structure
(graph) that encodes this information. Such a graph can become really
huge when taking libraries into account and hence Soot provides no
general way to construct such graphs - usually every analysis focuses
on different instructions and therefore it makes more sense to create
a graph that is specialized to your analysis.

> If values appear as IntConstant, can i access the real value?

Yes. There will be a public field myConstant.value.

> The problem is, that i don't have the programs as java source code, only the
> bytecode is available.

But how do you run the program? I guess, there must be an entry point
of some kind...

Eric
-- 
Eric Bodden
Sable Research Group, McGill University
Montréal, Québec, Canada


More information about the Soot-list mailing list