Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about the input of susi #2

Open
jxnu707 opened this issue Jul 5, 2015 · 1 comment
Open

Question about the input of susi #2

jxnu707 opened this issue Jul 5, 2015 · 1 comment

Comments

@jxnu707
Copy link

jxnu707 commented Jul 5, 2015

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

@srasthofer
Copy link
Collaborator

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants