FlowDroid
FlowDroid copied to clipboard
FlowDroid missing leak inside button
I made a simple app to test FlowDroid. I use the Log function as the sink with three diferent sources:
Log.v("test", "sim is " + finalSimNumber + "lac is" + finalLac + "cid is" + finalCellID);
When this function is in the main OnCreate
method Flowdroid correctly detects it as 1 leak with 3 sources. However, when I move this function into the onClick
function of a button, FlowDroid does not detect any leak. The following code results in Found 0 leaks:
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Log.v("test", "sim is " + finalSimNumber + "lac is" + finalLac + "cid is" + finalCellID);
}
});