File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,6 @@ private class SensitiveInfoExpr extends Expr {
20
20
}
21
21
}
22
22
23
- /**
24
- * A method access of the `Context.sendBroadcast` family.
25
- */
26
- private class SendBroadcastMethodAccess extends MethodAccess {
27
- SendBroadcastMethodAccess ( ) {
28
- this .getMethod ( ) .getDeclaringType ( ) .getASourceSupertype * ( ) instanceof TypeContext and
29
- this .getMethod ( ) .getName ( ) .matches ( "send%Broadcast%" )
30
- }
31
- }
32
-
33
23
private predicate maybeNullArg ( Expr ex ) {
34
24
exists ( DataFlow:: Node src , DataFlow:: Node sink , MethodAccess ma |
35
25
ex = ma .getAnArgument ( ) and
@@ -54,7 +44,8 @@ private predicate maybeEmptyArrayArg(Expr ex) {
54
44
* Holds if a `sendBroadcast` call doesn't specify receiver permission.
55
45
*/
56
46
private predicate isSensitiveBroadcastSink ( DataFlow:: Node sendBroadcastCallArg ) {
57
- exists ( SendBroadcastMethodAccess ma , string name | ma .getMethod ( ) .hasName ( name ) |
47
+ exists ( MethodAccess ma , string name | ma .getMethod ( ) .hasName ( name ) |
48
+ ma .getMethod ( ) .getDeclaringType ( ) .getASourceSupertype * ( ) instanceof TypeContext and
58
49
sendBroadcastCallArg .asExpr ( ) = ma .getAnArgument ( ) and
59
50
(
60
51
name = "sendBroadcast" and
You can’t perform that action at this time.
0 commit comments