FlowDroid icon indicating copy to clipboard operation
FlowDroid copied to clipboard

FlowDroid missing leak inside button

Open AGronowski opened this issue 4 years ago • 0 comments

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);
        }
    });

AGronowski avatar Jun 18 '20 17:06 AGronowski