Skip to content

Commit 46eb27c

Browse files
Don't restrict inputs to be ParameterNodes
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent d5f675c commit 46eb27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/dataflow/FlowSources.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class AndroidContentProviderInput extends DataFlow::Node {
254254

255255
AndroidContentProviderInput() {
256256
sourceNode(this, "contentprovider") and
257-
this.asParameter().getCallable().getDeclaringType() = declaringType
257+
this.getEnclosingCallable().getDeclaringType() = declaringType
258258
}
259259
}
260260

0 commit comments

Comments
 (0)