@@ -61,7 +61,7 @@ class DateTimeStruct extends Struct {
6161 /**
6262 * holds if the Callable is used for DateTime arithmetic operations
6363 */
64- Callable getATimeSpanArtithmeticCallable ( ) {
64+ Callable getATimeSpanArithmeticCallable ( ) {
6565 ( result = this .getAnOperator ( ) or result = this .getAMethod ( ) ) and
6666 result .getName ( ) in [
6767 "Add" , "AddDays" , "AddHours" , "AddMilliseconds" , "AddMinutes" , "AddMonths" , "AddSeconds" ,
@@ -96,7 +96,7 @@ private class FlowsFromGetLastWriteTimeConfigToTimeSpanArithmeticCallable extend
9696 override predicate isSink ( DataFlow:: Node sink ) {
9797 exists ( Call call , DateTimeStruct dateTime |
9898 call .getAChild * ( ) = sink .asExpr ( ) and
99- call = dateTime .getATimeSpanArtithmeticCallable ( ) .getACall ( )
99+ call = dateTime .getATimeSpanArithmeticCallable ( ) .getACall ( )
100100 )
101101 }
102102}
@@ -111,7 +111,7 @@ private class FlowsFromTimeSpanArithmeticToTimeComparisonCallable extends TaintT
111111
112112 override predicate isSource ( DataFlow:: Node source ) {
113113 exists ( DateTimeStruct dateTime , Call call | source .asExpr ( ) = call |
114- call = dateTime .getATimeSpanArtithmeticCallable ( ) .getACall ( )
114+ call = dateTime .getATimeSpanArithmeticCallable ( ) .getACall ( )
115115 )
116116 }
117117
@@ -157,7 +157,7 @@ predicate isPotentialTimeBomb(
157157 |
158158 pathSource .getNode ( ) = exprNode ( getLastWriteTimeMethodCall ) and
159159 config1 .hasFlow ( exprNode ( getLastWriteTimeMethodCall ) , sink ) and
160- timeArithmeticCall = dateTime .getATimeSpanArtithmeticCallable ( ) .getACall ( ) and
160+ timeArithmeticCall = dateTime .getATimeSpanArithmeticCallable ( ) .getACall ( ) and
161161 timeArithmeticCall .getAChild * ( ) = sink .asExpr ( ) and
162162 config2 .hasFlow ( exprNode ( timeArithmeticCall ) , sink2 ) and
163163 timeComparisonCall = dateTime .getAComparisonCallable ( ) .getACall ( ) and
0 commit comments