FlowDroid icon indicating copy to clipboard operation
FlowDroid copied to clipboard

FlowDroid fails to find the leak in my test apk

Open singleboat opened this issue 7 years ago • 0 comments

I write a demo app to test the FlowDroid, but it fails to find the leak. Here is the related code:

public class Parent {
    public String foo() {
        return "Hello Taint";
    }
}
TextView text = findViewById(R.id.text);
Parent p = new Parent();
String s = p.foo() + '!';
text.setText(s);

FlowDroid succeeds to find the leak when I pass 'p.foo()' to TextView.setText() directly, but fails when I change it as I show before. I use the version 2.6.1. Is there any configuration I need to set in InfoflowConfiguration, or is it not considered as a leak?

singleboat avatar Feb 21 '19 14:02 singleboat