SuSi icon indicating copy to clipboard operation
SuSi copied to clipboard

Question about the input of susi

Open jxnu707 opened this issue 10 years ago • 1 comments

hi, in SourceSinkFinder.main() there is a statement like: System.out.println("Usage: java de.ecspride.sourcesinkfinder.SourceSinkFinder " + "<androidJAR> ...<inputN> <outputFile>"); So what exactly is the input1...inputN,? Is it some text file form?

jxnu707 avatar Jul 05 '15 08:07 jxnu707

Susi needs an annotated file with source sink annotations for methods. These annotations are then taken to train the learner. For instance, if you want to flag the getDeviceId and getLine1Number methods as a source, you can do this with the following:

<android.telephony.TelephonyManager: java.lang.String getDeviceId()> -> _SOURCE_
<android.telephony.TelephonyManager: java.lang.String getLine1Number()> -> _SOURCE_
</code>
...

for sinks you take the "-> _SINK" annotation and for methods that are neither, you take "-> NONE"

srasthofer avatar Jul 05 '15 20:07 srasthofer