-
Notifications
You must be signed in to change notification settings - Fork 300
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
False positive with sanitizing function in a loop #763
Comments
Please provide your precise FlowDroid configuration. The taint analysis should normally not look at |
Implicit flows are not enabled, I call FlowDroid via
and my <sinkSources>
<category id="NO_CATEGORY">
<method signature="{package-name}.MainActivity: java.lang.String source()>">
<return type="java.lang.String">
<accessPath isSource="true" isSink="false">
</accessPath>
</return>
</method>
<method signature="{package-name}.MainActivity: void sink(java.lang.String)>">
<param index="0" type="java.lang.String">
<accessPath isSource="false" isSink="true"/>
</param>
</method>
</category>
</sinkSources> After tinkering around a little I found that the Update: After tinkering around a little more I figured that my current setup doesn't find any leaks at all withouth the |
I've found a bug in the FlowDroid command line tool.
Consider the following code:
FlowDroid reports one leak for the sink in
onCreate
. This false positive only happens in the combination "calling thesanitize
function within a loop and having the if-statement inside the function". If theif
is removed or the call tosanitize
is moved out of the loop, FlowDroid reports no leaks.Even if we add another call
s = sanitize(source());
between the loop and the sink-call, no false positive is reported.The text was updated successfully, but these errors were encountered: