FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Introduce TaintInheritingContent · github/codeql@5da392e · GitHub

/ codeql Public

Commit 5da392e

Browse files
committed
Introduce TaintInheritingContent
1 parent 1afc03b commit 5da392e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • java/ql/lib/semmle/code/java/frameworks/android

‎java/ql/lib/semmle/code/java/frameworks/android/Intent.qll‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ class IntentGetParcelableExtraMethod extends Method {
7575
}
7676
}
7777

78+
/**
79+
* Specifies that if an `Intent` is tainted, then so are its synthetic fields.
80+
*/
81+
private class IntentFieldsInheritTaint extends DataFlow::SyntheticFieldContent,
82+
TaintInheritingContent {
83+
IntentFieldsInheritTaint() { this.getField().matches("android.content.Intent.%") }
84+
}
85+
7886
private class IntentBundleFlowSteps extends SummaryModelCsv {
7987
override predicate row(string row) {
8088
row =

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL