File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ private class DefaultIntentRedirectionSinkModel extends SinkModelCsv {
51
51
"android.content;Context;true;startActivityFromChild;;;Argument[1];intent-start" ,
52
52
"android.content;Context;true;startActivityFromFragment;;;Argument[1];intent-start" ,
53
53
"android.content;Context;true;startActivityIfNeeded;;;Argument[0];intent-start" ,
54
+ "android.content;Context;true;startForegroundService;;;Argument[0];intent-start" ,
54
55
"android.content;Context;true;startService;;;Argument[0];intent-start" ,
55
56
"android.content;Context;true;startServiceAsUser;;;Argument[0];intent-start" ,
56
57
"android.content;Context;true;sendBroadcast;;;Argument[0];intent-start" ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ private class SendPendingIntent extends DataFlow::Node {
64
64
not exists ( MethodAccess ma , Method m |
65
65
ma .getMethod ( ) = m and
66
66
m .getDeclaringType ( ) .getASupertype * ( ) instanceof TypeContext and
67
- m .hasName ( "startService ") and
67
+ m .getName ( ) . matches ( "start%Service% ") and
68
68
this .asExpr ( ) = ma .getArgument ( 0 )
69
69
)
70
70
or
You can’t perform that action at this time.
0 commit comments