@@ -10,7 +10,7 @@ private class OnReceiveMethod extends Method {
10
10
.hasQualifiedName ( "android.content" , "BroadcastReceiver" , "onReceive" )
11
11
}
12
12
13
- /** Gets the paramter of this method that holds the received `Intent`. */
13
+ /** Gets the parameter of this method that holds the received `Intent`. */
14
14
Parameter getIntentParameter ( ) { result = this .getParameter ( 1 ) }
15
15
}
16
16
@@ -30,7 +30,7 @@ private class VerifiedIntentConfig extends DataFlow::Configuration {
30
30
}
31
31
}
32
32
33
- /** An `onReceive` method that doesn't verify the action of the intent it recieves . */
33
+ /** An `onReceive` method that doesn't verify the action of the intent it receives . */
34
34
class UnverifiedOnReceiveMethod extends OnReceiveMethod {
35
35
UnverifiedOnReceiveMethod ( ) {
36
36
not any ( VerifiedIntentConfig c ) .hasFlow ( DataFlow:: parameterNode ( this .getIntentParameter ( ) ) , _)
@@ -70,7 +70,7 @@ class SystemActionName extends Top {
70
70
)
71
71
}
72
72
73
- /** Gets the name of the system intent that this expression or attriute represents. */
73
+ /** Gets the name of the system intent that this expression or attribute represents. */
74
74
string getName ( ) { result = name }
75
75
76
76
override string toString ( ) {
@@ -125,8 +125,8 @@ private class RegisterSystemActionConfig extends DataFlow::Configuration {
125
125
}
126
126
}
127
127
128
- /** Holds if `rrc` registers a reciever `orm` to recieve the system action `sa` that doesn't verifiy intents it recieves . */
129
- predicate registeredUnverifiedSystemReceiver (
128
+ /** Holds if `rrc` registers a receiver `orm` to receive the system action `sa` that doesn't verify the intents it receives . */
129
+ private predicate registeredUnverifiedSystemReceiver (
130
130
RegisterReceiverCall rrc , UnverifiedOnReceiveMethod orm , SystemActionName sa
131
131
) {
132
132
exists ( RegisterSystemActionConfig conf , ConstructorCall cc |
@@ -136,8 +136,8 @@ predicate registeredUnverifiedSystemReceiver(
136
136
)
137
137
}
138
138
139
- /** Holds if the XML element `rec` declares a reciever `orm` to recieve the system action named `sa` that doesn't verifiy intents it recieves . */
140
- predicate xmlUnverifiedSystemReceiver (
139
+ /** Holds if the XML element `rec` declares a receiver `orm` to receive the system action named `sa` that doesn't verify intents it receives . */
140
+ private predicate xmlUnverifiedSystemReceiver (
141
141
XMLElement rec , UnverifiedOnReceiveMethod orm , SystemActionName sa
142
142
) {
143
143
exists ( XMLElement filter , XMLElement action , Class ormty |
@@ -152,7 +152,7 @@ predicate xmlUnverifiedSystemReceiver(
152
152
)
153
153
}
154
154
155
- /** Holds if `reg` registers (either explicitly or through XML) a reciever `orm` to recieve the system action named `sa` that doesn't verify intents it recieves . */
155
+ /** Holds if `reg` registers (either explicitly or through XML) a receiver `orm` to receive the system action named `sa` that doesn't verify the intents it receives . */
156
156
predicate unverifiedSystemReceiver ( Top reg , Method orm , SystemActionName sa ) {
157
157
registeredUnverifiedSystemReceiver ( reg , orm , sa ) or
158
158
xmlUnverifiedSystemReceiver ( reg , orm , sa )
0 commit comments