Skip to content

Commit 6722892

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: switch 'android-widget' source kind to 'remote'
1 parent 40cf099 commit 6722892

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

java/ql/lib/ext/android.widget.model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extensions:
33
pack: codeql/java-all
44
extensible: sourceModel
55
data:
6-
- ["android.widget", "EditText", True, "getText", "", "", "ReturnValue", "android-widget", "manual"]
6+
- ["android.widget", "EditText", True, "getText", "", "", "ReturnValue", "remote", "manual"]
77
- addsTo:
88
pack: codeql/java-all
99
extensible: summaryModel

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ module ModelValidation {
286286
)
287287
or
288288
exists(string kind | sourceModel(_, _, _, _, _, _, _, kind, _) |
289-
not kind = ["remote", "contentprovider", "android-widget", "android-external-storage-dir"] and
289+
not kind = ["remote", "contentprovider", "android-external-storage-dir"] and
290290
not kind.matches("qltest%") and
291291
result = "Invalid kind \"" + kind + "\" in source model."
292292
)

java/ql/lib/semmle/code/java/frameworks/android/Widget.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ private import semmle.code.java.dataflow.ExternalFlow
55
private import semmle.code.java.dataflow.FlowSources
66

77
private class DefaultAndroidWidgetSources extends RemoteFlowSource {
8-
DefaultAndroidWidgetSources() { sourceNode(this, "android-widget") }
8+
DefaultAndroidWidgetSources() { sourceNode(this, "remote") }
99

1010
override string getSourceType() { result = "Android widget source" }
1111
}

0 commit comments

Comments
 (0)