mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
Apply suggestions from code review
Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
@@ -72,6 +72,8 @@ private class IntentFlagsOrDataCheckedGuard extends IntentUriPermissionManipulat
|
||||
|
||||
override predicate checks(Expr e, boolean branch) {
|
||||
exists(MethodAccess ma, Method m |
|
||||
// This checks `intent` when the result of an `intent.getFlags` or `intent.getData` call flows to `condition`
|
||||
// (i.e., that result is equality-tested)
|
||||
ma.getMethod() = m and
|
||||
m.getDeclaringType() instanceof TypeIntent and
|
||||
m.hasName(["getFlags", "getData"]) and
|
||||
|
||||
Reference in New Issue
Block a user