@@ -10,7 +10,7 @@ private class OnReceiveMethod extends Method {
1010 .hasQualifiedName ( "android.content" , "BroadcastReceiver" , "onReceive" )
1111 }
1212
13- /** Gets the paramter of this method that holds the received `Intent`. */
13+ /** Gets the parameter of this method that holds the received `Intent`. */
1414 Parameter getIntentParameter ( ) { result = this .getParameter ( 1 ) }
1515}
1616
@@ -30,7 +30,7 @@ private class VerifiedIntentConfig extends DataFlow::Configuration {
3030 }
3131}
3232
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 . */
3434class UnverifiedOnReceiveMethod extends OnReceiveMethod {
3535 UnverifiedOnReceiveMethod ( ) {
3636 not any ( VerifiedIntentConfig c ) .hasFlow ( DataFlow:: parameterNode ( this .getIntentParameter ( ) ) , _)
@@ -70,7 +70,7 @@ class SystemActionName extends Top {
7070 )
7171 }
7272
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. */
7474 string getName ( ) { result = name }
7575
7676 override string toString ( ) {
@@ -125,8 +125,8 @@ private class RegisterSystemActionConfig extends DataFlow::Configuration {
125125 }
126126}
127127
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 (
130130 RegisterReceiverCall rrc , UnverifiedOnReceiveMethod orm , SystemActionName sa
131131) {
132132 exists ( RegisterSystemActionConfig conf , ConstructorCall cc |
@@ -136,8 +136,8 @@ predicate registeredUnverifiedSystemReceiver(
136136 )
137137}
138138
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 (
141141 XMLElement rec , UnverifiedOnReceiveMethod orm , SystemActionName sa
142142) {
143143 exists ( XMLElement filter , XMLElement action , Class ormty |
@@ -152,7 +152,7 @@ predicate xmlUnverifiedSystemReceiver(
152152 )
153153}
154154
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 . */
156156predicate unverifiedSystemReceiver ( Top reg , Method orm , SystemActionName sa ) {
157157 registeredUnverifiedSystemReceiver ( reg , orm , sa ) or
158158 xmlUnverifiedSystemReceiver ( reg , orm , sa )
0 commit comments