Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef63f57

Browse files
committed
spelling: arithmetic
Signed-off-by: Josh Soref <[email protected]>
1 parent 5ea0f06 commit ef63f57

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

csharp/ql/lib/semmle/code/csharp/exprs/Expr.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class Operation extends Expr, @op_expr {
192192
}
193193

194194
/**
195-
* A unary operation. Either a unary arithemtic operation
195+
* A unary operation. Either a unary arithmetic operation
196196
* (`UnaryArithmeticOperation`), a unary bitwise operation
197197
* (`UnaryBitwiseOperation`), a `sizeof` operation (`SizeofExpr`), a pointer
198198
* indirection operation (`PointerIndirectionExpr`), an address-of operation
@@ -206,7 +206,7 @@ class UnaryOperation extends Operation, @un_op {
206206
}
207207

208208
/**
209-
* A binary operation. Either a binary arithemtic operation
209+
* A binary operation. Either a binary arithmetic operation
210210
* (`BinaryArithmeticOperation`), a binary bitwise operation
211211
* (`BinaryBitwiseOperation`), a comparison operation (`ComparisonOperation`),
212212
* or a binary logical operation (`BinaryLogicalOperation`).

csharp/ql/src/experimental/Security Features/backdoor/PotentialTimeBomb.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)